Skip to content

Commit

Permalink
Remove GOPRIVATE logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrique Santos committed Oct 13, 2023
1 parent e671694 commit 19a3eb3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 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

0 comments on commit 19a3eb3

Please sign in to comment.