aspect-build / aspect-cli

correct, fast, usable: choose three
https://aspect.build/cli
Apache License 2.0
93 stars 22 forks source link

[FR]: version should say where it resolved from #759

Open alexeagle opened 1 month ago

alexeagle commented 1 month ago

What is the current behavior?

User tripped over getting the bazel version they didn't expect:

I think the Aspect are slightly off. BAZEL_VERSION should be USE_BAZEL_VERSION, which btw seems to work. Still unclear why .bazelversion doesn't. We have both a WORKSPACE and MODULE.bazel file so it should know where the workspace root is.

I think it's a Bazelisk problem. I tried uninstalling aspect CLI and running bazelisk directly. It still tries to install the wrong version of Bazel huh, $USE_BAZEL_VERSION is set in my shell all of a sudden. I swear it wasn't before nevermind, I'm dumb. my zshrc is setting it

Describe the feature

Would be good to have bazel version report where it came from (similar to --announce_rc showing where options come from).