Skip to content

Commit

Permalink
Generation improvements (#34)
Browse files Browse the repository at this point in the history
* Remove GOPRIVATE logic

* Add sync-tidy

---------

Co-authored-by: Henrique Santos <[email protected]>
  • Loading branch information
hcsa73 and Henrique Santos authored Oct 13, 2023
1 parent e671694 commit 876a5f9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/generate-sdk/generate-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ fi

cleanup() {
rm -rf ${sdk_services_backup_dir}
go env -w GOPRIVATE=${goprivate_backup}
}

if type -p java >/dev/null; then
Expand Down Expand Up @@ -75,10 +74,6 @@ git clone ${SDK_REPO_URL} ${SDK_REPO_LOCAL_PATH}
cd ${SDK_REPO_LOCAL_PATH}
make project-tools

# Set GOPRIVATE to download the SDK Go module
goprivate_backup=$(go env GOPRIVATE)
go env -w GOPRIVATE="github.com/stackitcloud"

# Save and remove SDK services/
cp -a "${SDK_REPO_LOCAL_PATH}/services/." ${sdk_services_backup_dir}
rm -rf ${SDK_REPO_LOCAL_PATH}/services
Expand Down Expand Up @@ -160,3 +155,4 @@ done
# Cleanup after SDK generation
cd ${SDK_REPO_LOCAL_PATH}
goimports -w ${SDK_REPO_LOCAL_PATH}/services/
make sync-tidy

0 comments on commit 876a5f9

Please sign in to comment.