Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building wstl 1 is broken #79

Open
hungrymonkey opened this issue Sep 29, 2024 · 1 comment · May be fixed by #80
Open

Building wstl 1 is broken #79

hungrymonkey opened this issue Sep 29, 2024 · 1 comment · May be fixed by #80

Comments

@hungrymonkey
Copy link

healthcare-data-harmonization/wstl1> ./build_all.sh 
Entering /home/doof/gitrepo/healthcare-data-harmonization/wstl1/mapping_engine/main
# github.com/GoogleCloudPlatform/healthcare-data-harmonization/mapping_engine/proto
../proto/data_harmonization.pb.go:164:53: predeclared any requires go1.18 or later (-lang was set to go1.14; check go.mod)
../proto/data_harmonization.pb.go:191:69: predeclared any requires go1.18 or later (-lang was set to go1.14; check go.mod)
../proto/harmonization.pb.go:442:48: predeclared any requires go1.18 or later (-lang was set to go1.14; check go.mod)
../proto/harmonization.pb.go:473:64: predeclared any requires go1.18 or later (-lang was set to go1.14; check go.mod)
../proto/harmonization.pb.go:485:64: predeclared any requires go1.18 or later (-lang was set to go1.14; check go.mod)
../proto/harmonization.pb.go:497:64: predeclared any requires go1.18 or later (-lang was set to go1.14; check go.mod)
../proto/http.pb.go:484:39: predeclared any requires go1.18 or later (-lang was set to go1.14; check go.mod)
../proto/library.pb.go:261:42: predeclared any requires go1.18 or later (-lang was set to go1.14; check go.mod)
../proto/mapping.pb.go:1001:42: predeclared any requires go1.18 or later (-lang was set to go1.14; check go.mod)
../proto/unit_config.pb.go:264:46: predeclared any requires go1.18 or later (-lang was set to go1.14; check go.mod)
../proto/harmonization.pb.go:497:64: too many errors

We can fix the issue by bumping the go.mod from 1.14 to 1.18

diff --git a/wstl1/mapping_engine/proto/go.mod b/wstl1/mapping_engine/proto/go.mod
index ecd996d..ce74632 100644
--- a/wstl1/mapping_engine/proto/go.mod
+++ b/wstl1/mapping_engine/proto/go.mod
@@ -1,8 +1,5 @@
 module github.com/GoogleCloudPlatform/healthcare-data-harmonization/mapping_engine/proto
 
-go 1.14
+go 1.18
 
-require (
-    github.com/golang/protobuf v1.4.3
-    google.golang.org/protobuf v1.25.0
-)
+require google.golang.org/protobuf v1.25.0
@hungrymonkey
Copy link
Author

 go version
go version go1.23.1 linux/amd64

@hungrymonkey hungrymonkey linked a pull request Oct 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant