-
Notifications
You must be signed in to change notification settings - Fork 30
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
Don't run clean-gen twice #214
Conversation
From CI:
So the gen folder is properly removed before running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the issues faced in #193.
A target is always executed at most one time. |
ALL_GO_SUB_MOD_DIRS := $(shell find . -type f -name 'go.mod' -mindepth 2 -exec dirname {} \; | sort) | ||
OTEL_GO_MOD_DIRS := $(filter-out $(TOOLS_MOD_DIR), $(ALL_GO_SUB_MOD_DIRS)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need clean-gen
after these changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm yeah, we could indeed remove it and only run tidy in the submodules. I'm thinking it's too easy to get bitten by gen code that hasn't been cleaned though. So doing it is a good measure as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to have gen
(build artifacts) after running make
to easier troubleshoot problems if something goes wrong. I created #215
…o into mike/update-proto Module set all, Version v1.4.0 -----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAAhcAAAAHc3NoLXJzYQAAAAMBAAEAAAIBAKPZJFEnbUEMpjgH+rae0P F71PPgEX77tsI8HSkSLfnhj9mdZhTWmVtMkM1y5thLnmY5BFMXgATsKQadB/E/qNDYs0kT F7oYjHaAp9jkwIL69bGf5M+RFhV4NxQo90A86Bh3yWFkfG3RidmEfWthvknRYw4E1QRiyR zgBSIZ9VZgaMtu3cK5MHgNchAF0jkQBZ4YYAhCBSsFWwr/JYCFQxgBeG5tGBEfWjjDg+RQ Vh+lU0iKForTV8/S0LzPdLI2MBexaG0eEVUMt3GQnCX/b/IpUSPmjy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DA6zWC 7WJXS0+BYtbuppe5uQi+yosy6sV1TL1TPoYmI/f3o/sPJc53RTxY/XCE+y5IgXObCXqCtO a4RjU= -----END SSH SIGNATURE----- * tag 'v1.4.0' of github.com:open-telemetry/opentelemetry-proto-go: (89 commits) Upgrade proto to v1.4.0 (open-telemetry#193) Don't run clean-gen twice (open-telemetry#214) clean the gen folder before running tidy (open-telemetry#211) Remove compat from go mod tidy (open-telemetry#213) Update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.24.0 (open-telemetry#209) Update google.golang.org/genproto/googleapis/api digest to e639e21 (open-telemetry#197) Update module golang.org/x/net to v0.31.0 (open-telemetry#203) Update google.golang.org/genproto/googleapis/rpc digest to e639e21 (open-telemetry#198) Update module golang.org/x/text to v0.20.0 (open-telemetry#206) Update module go.opentelemetry.io/build-tools/multimod to v0.15.0 (open-telemetry#201) Prevent the use of toolchain in go.mod (open-telemetry#202) Document and test supported versions of Go (open-telemetry#205) Switch from dependabot to renovate (open-telemetry#196) Bump google.golang.org/protobuf from 1.35.1 to 1.35.2 in /slim/otlp (open-telemetry#192) Bump google.golang.org/protobuf from 1.35.1 to 1.35.2 in /otlp (open-telemetry#191) Bump github.com/grpc-ecosystem/grpc-gateway/v2 in /otlp (open-telemetry#188) Bump google.golang.org/protobuf from 1.34.2 to 1.35.1 in /slim/otlp (open-telemetry#187) Bump google.golang.org/protobuf from 1.34.2 to 1.35.1 in /otlp (open-telemetry#186) Bump github.com/grpc-ecosystem/grpc-gateway/v2 in /otlp (open-telemetry#185) Bump github.com/grpc-ecosystem/grpc-gateway/v2 in /otlp (open-telemetry#184) ...
…o into mike/update-proto-2 Module set all, Version v1.4.0 -----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAAhcAAAAHc3NoLXJzYQAAAAMBAAEAAAIBAKPZJFEnbUEMpjgH+rae0P F71PPgEX77tsI8HSkSLfnhj9mdZhTWmVtMkM1y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sHXO4p86LYte0gHV+GvQo +iQ+VVcFelaZBnT3Y6MvXDNWMEUg/rwbVGSF63vf+5o/lEjAq/+KVRYkR8WvYo5msbbuOl QCOpBdKWLbzvrCeSFk1CEbTpOg2YUVgBrP7M+p1fYSKp37zxxWWrhOYZ1WUIWvj70Dkhl+ mpsZM8EMZGYWTSBxX9rGRag8y133QfFy1tHVR2mws9a+bCWDrcfhykGOVpkFIH3NDA6zWC 7WJXS0+BYtbuppe5uQi+yosy6sV1TL1TPoYmI/f3o/sPJc53RTxY/XCE+y5IgXObCXqCtO a4RjU= -----END SSH SIGNATURE----- * tag 'v1.4.0' of github.com:open-telemetry/opentelemetry-proto-go: (89 commits) Upgrade proto to v1.4.0 (open-telemetry#193) Don't run clean-gen twice (open-telemetry#214) clean the gen folder before running tidy (open-telemetry#211) Remove compat from go mod tidy (open-telemetry#213) Update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.24.0 (open-telemetry#209) Update google.golang.org/genproto/googleapis/api digest to e639e21 (open-telemetry#197) Update module golang.org/x/net to v0.31.0 (open-telemetry#203) Update google.golang.org/genproto/googleapis/rpc digest to e639e21 (open-telemetry#198) Update module golang.org/x/text to v0.20.0 (open-telemetry#206) Update module go.opentelemetry.io/build-tools/multimod to v0.15.0 (open-telemetry#201) Prevent the use of toolchain in go.mod (open-telemetry#202) Document and test supported versions of Go (open-telemetry#205) Switch from dependabot to renovate (open-telemetry#196) Bump google.golang.org/protobuf from 1.35.1 to 1.35.2 in /slim/otlp (open-telemetry#192) Bump google.golang.org/protobuf from 1.35.1 to 1.35.2 in /otlp (open-telemetry#191) Bump github.com/grpc-ecosystem/grpc-gateway/v2 in /otlp (open-telemetry#188) Bump google.golang.org/protobuf from 1.34.2 to 1.35.1 in /slim/otlp (open-telemetry#187) Bump google.golang.org/protobuf from 1.34.2 to 1.35.1 in /otlp (open-telemetry#186) Bump github.com/grpc-ecosystem/grpc-gateway/v2 in /otlp (open-telemetry#185) Bump github.com/grpc-ecosystem/grpc-gateway/v2 in /otlp (open-telemetry#184) ...
It seems like
clean-gen
is being executed only once, even though Make asks to execute it twice.That maybe an "optimization" on some make versions, where commands are expected to be idempotent?