Skip to content

Commit

Permalink
Fixup generation (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjreiniger committed May 7, 2024
1 parent 002eda2 commit 34ee022
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import .bazelrc-cc
import .bazelrc-java
import .bazelrc-buildbuddy

build --test_env=LD_LIBRARY_PATH=.
build --test_env=DYLD_LIBRARY_PATH=.

# Roborio
build:roborio --platforms=@rules_bzlmodrio_toolchains//platforms/roborio
build:roborio --build_tag_filters=-no-roborio
Expand Down
2 changes: 1 addition & 1 deletion .bazelrc-cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build:windows_arm --copt=/wd5105
build:windows_arm --cxxopt=/wd4146
build:windows_arm --cxxopt=/wd4267
build:windows_arm --cxxopt=/wd4244
build:windows_arm --cpu=x64_arm64_windows
build:windows_arm --cpu=arm64_windows

# Linux
build:linux --copt=-Wall
Expand Down
1 change: 1 addition & 0 deletions generate/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ py_binary(
srcs = ["publish.py"],
visibility = ["//visibility:public"],
deps = [
":get_toolchain_dependencies",
"@bzlmodrio-gentool//bazelrio_gentool",
],
)
Expand Down
2 changes: 1 addition & 1 deletion generate/get_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


def main():
print(get_toolchain_dependencies().jdk_version)
print(get_toolchain_dependencies().sanitized_version)


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion generate/templates/MODULE.bazel.jinja2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module(
name = "{{group.repo_name}}",
version = "{{group.sanitized_version.replace('-', '+')}}{{group.patch}}",
version = "{{group.sanitized_version}}{{group.patch}}",
compatibility_level = {{group.year}},
)

Expand Down
3 changes: 3 additions & 0 deletions tests/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import .bazelrc-cc
import .bazelrc-java
import .bazelrc-buildbuddy

build --test_env=LD_LIBRARY_PATH=.
build --test_env=DYLD_LIBRARY_PATH=.

# Roborio
build:roborio --platforms=@rules_bzlmodrio_toolchains//platforms/roborio
build:roborio --build_tag_filters=-no-roborio
Expand Down
2 changes: 1 addition & 1 deletion tests/.bazelrc-cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build:windows_arm --copt=/wd5105
build:windows_arm --cxxopt=/wd4146
build:windows_arm --cxxopt=/wd4267
build:windows_arm --cxxopt=/wd4244
build:windows_arm --cpu=x64_arm64_windows
build:windows_arm --cpu=arm64_windows

# Linux
build:linux --copt=-Wall
Expand Down

0 comments on commit 34ee022

Please sign in to comment.