Skip to content

Commit 0a91a39

Browse files
authored
fix error on local-env-setup.sh (#33461)
* fix error on local-env-setup.sh * Update local-env-setup.sh
1 parent 8f2bf22 commit 0a91a39

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ sdks/**/vendor/**/*
1616
runners/**/vendor/**/*
1717
**/.gradletasknamecache
1818
**/generated/*
19+
/go.mod
20+
/go.sum
1921

2022
# Ignore sources generated into the main tree
2123
**/src/main/generated/**

local-env-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ darwin_install_pip3_packages() {
2424

2525
install_go_packages(){
2626
echo "Installing goavro"
27-
go get github.com/linkedin/goavro/v2
27+
go mod init beam-runtime && go get github.com/linkedin/goavro/v2
2828
# As we are using bash, we are assuming .bashrc exists.
2929
grep -qxF "export GOPATH=${PWD}/sdks/go/examples/.gogradle/project_gopath" ~/.bashrc
3030
gopathExists=$?

0 commit comments

Comments
 (0)