Skip to content
Snippets Groups Projects
goagen.sh 325 B
Newer Older
#!/bin/bash

set -e

# preserve the value of GOFLAGS
STORED_GOFLAGS=$(go env GOFLAGS)

# force goa to not use vendored deps during generation
go env -w GOFLAGS=-mod=mod

# execute goa code generation
goa gen gitlab.eclipse.org/eclipse/xfsc/tsa/infohub/design

# restore the value of GOFLAGS
go env -w GOFLAGS=$STORED_GOFLAGS