Skip to content

only do version check on windows os #50

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

Merged
merged 2 commits into from
Jul 6, 2024

Conversation

peakschris
Copy link
Contributor

Relax the windows version check. Instead of failing when any os accesses a multitool containing windows binaries at bazel < 7.1, only fail when windows does this access.

Fixes #49

@peakschris peakschris mentioned this pull request Jul 5, 2024
@mark-thm mark-thm merged commit dfea28a into theoremlp:main Jul 6, 2024
8 checks passed
Copy link
Contributor

@alexeagle alexeagle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

# skip version check on windows if we don't have a release version. We can't tell from a hash what features we have.
if os == "windows" and native.bazel_version:
if os == "windows" and binary_os == "windows" and native.bazel_version:
version = native.bazel_version.split(".")
if int(version[0]) > 7 or (int(version[0]) == 7 and int(version[1]) >= 1):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: the versions.bzl utility in Bazel-skylib might be appropriate here (if the ruleset already depends on it)

mark-thm pushed a commit that referenced this pull request Jul 8, 2024
)

Relax the Bazel version check for Windows artifacts. Instead of failing when any os accesses
a multitool containing Windows binaries on Bazel < 7.1, only fail when loading on Windows.

Fixes #49
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 this pull request may close these issues.

Windows version check is too strict
3 participants