Skip to content

Commit

Permalink
Alter generate-go.sh to match go-sdk generation
Browse files Browse the repository at this point in the history
  • Loading branch information
kfcampbell committed Nov 14, 2023
1 parent e17a1ba commit bf059e0
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions scripts/generate-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,14 @@

# convenience script for local development only
# .github/workflows/build-go.yml is the source of truth for the generated Go workflow
# note: before running this script, ensure the generated/go directory has been deleted
# but the sample app restored:
# rm -rf generated/go/
# git restore generated/

./scripts/install-tools.sh

set -ex

go run schemas/main.go --schema-next=false
kiota generate -l go --ll trace -o generated/go -n kiota -d schemas/downloaded.json
kiota generate -l go --ll trace -o $(pwd)/../go-sdk -n go-sdk -d schemas/downloaded.json
go build -o post-processors/go/post-processor post-processors/go/main.go
post-processors/go/post-processor $(pwd)/generated/go
cd generated/go
cd $(pwd)/../go-sdk
$(pwd)/../source-generator/post-processors/go/post-processor $(pwd)
go build ./...
go run *.go

0 comments on commit bf059e0

Please sign in to comment.