-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: update MODULE.bazel
to use go_default_sdk
#250
Conversation
and without bzlmod enabled.
@fmeum Does this change to use |
@fmeum I am seeing this error with the change:
Why do we get a different Go SDK when we use |
@cgrindel Sorry, that's on me, I forgot to update the version in the MODULE.bazel file before the release. I'll try to get a new release out with |
@fmeum No sweat. I'll just downgrade my go.mod for now. Thanks. |
Thinking about it again, rules_go in the WORKSPACE setup will always fetch the latest version, which may not be ideal for compatibility. I would prefer to keep the auto-registered toolchain version at the highest patch version of the lowest supported minor version. @cgrindel Would that work for you? |
@fmeum I think that is fine. I mostly mentioned the discrepancy because it seemed inconsistent. I don't really care which version of Go I am using in this repo. |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [cgrindel_bazel_starlib](https://togithub.com/cgrindel/bazel-starlib) | http_archive | patch | `v0.14.3` -> `v0.14.7` | --- ### Release Notes <details> <summary>cgrindel/bazel-starlib</summary> ### [`v0.14.7`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.14.7) [Compare Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.14.6...v0.14.7) #### What's Changed - Update README.md for v0.14.6 by [@​cgrindel-app-token-generator](https://togithub.com/cgrindel-app-token-generator) in [https://github.com/cgrindel/bazel-starlib/pull/253](https://togithub.com/cgrindel/bazel-starlib/pull/253) - chore: more debug for buildifier.sh by [@​cgrindel](https://togithub.com/cgrindel) in [https://github.com/cgrindel/bazel-starlib/pull/254](https://togithub.com/cgrindel/bazel-starlib/pull/254) **Full Changelog**: cgrindel/bazel-starlib@v0.14.6...v0.14.7 #### Workspace Snippet ```python load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "cgrindel_bazel_starlib", sha256 = "eaee02fa26e0114b244a30cffac6bb7ee55162bd347e8ab4d22dee42cee88ac5", urls = [ "https://github.com/cgrindel/bazel-starlib/releases/download/v0.14.7/bazel-starlib.v0.14.7.tar.gz", ], ) load("@​cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies") bazel_starlib_dependencies() load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() ``` ### [`v0.14.6`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.14.6) [Compare Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.14.5...v0.14.6) #### What's Changed - Update README.md for v0.14.5 by [@​cgrindel-app-token-generator](https://togithub.com/cgrindel-app-token-generator) in [https://github.com/cgrindel/bazel-starlib/pull/251](https://togithub.com/cgrindel/bazel-starlib/pull/251) - chore: add more debug code to `buildifier.sh` by [@​cgrindel](https://togithub.com/cgrindel) in [https://github.com/cgrindel/bazel-starlib/pull/252](https://togithub.com/cgrindel/bazel-starlib/pull/252) **Full Changelog**: cgrindel/bazel-starlib@v0.14.5...v0.14.6 #### Workspace Snippet ```python load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "cgrindel_bazel_starlib", sha256 = "be0c678818ad9b1f31ad8827c247bcd59135793e053a5fec0f0c08371a97e0da", urls = [ "https://github.com/cgrindel/bazel-starlib/releases/download/v0.14.6/bazel-starlib.v0.14.6.tar.gz", ], ) load("@​cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies") bazel_starlib_dependencies() load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() ``` ### [`v0.14.5`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.14.5) [Compare Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.14.4...v0.14.5) #### What's Changed - fix: switch to runfiles.bash v3 by [@​cgrindel](https://togithub.com/cgrindel) in [https://github.com/cgrindel/bazel-starlib/pull/249](https://togithub.com/cgrindel/bazel-starlib/pull/249) - fix: update `MODULE.bazel` to use `go_default_sdk` by [@​cgrindel](https://togithub.com/cgrindel) in [https://github.com/cgrindel/bazel-starlib/pull/250](https://togithub.com/cgrindel/bazel-starlib/pull/250) **Full Changelog**: cgrindel/bazel-starlib@v0.14.4...v0.14.5 #### Workspace Snippet ```python load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "cgrindel_bazel_starlib", sha256 = "db89cac4a8d6c0e39589304db0dc1c97c083f6f2a122089aceb3d8efc1511a95", urls = [ "https://github.com/cgrindel/bazel-starlib/releases/download/v0.14.5/bazel-starlib.v0.14.5.tar.gz", ], ) load("@​cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies") bazel_starlib_dependencies() load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() ``` ### [`v0.14.4`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.14.4) [Compare Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.14.3...v0.14.4) #### What's Changed - Update README.md for v0.14.3 by [@​cgrindel-app-token-generator](https://togithub.com/cgrindel-app-token-generator) in [https://github.com/cgrindel/bazel-starlib/pull/245](https://togithub.com/cgrindel/bazel-starlib/pull/245) - chore: add debug code to `buildifier.sh` by [@​cgrindel](https://togithub.com/cgrindel) in [https://github.com/cgrindel/bazel-starlib/pull/246](https://togithub.com/cgrindel/bazel-starlib/pull/246) **Full Changelog**: cgrindel/bazel-starlib@v0.14.3...v0.14.4 #### Workspace Snippet ```python load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "cgrindel_bazel_starlib", sha256 = "78e8754ce435bc2292d9157682fd842335239fe664cb4f75fed5968203c70794", urls = [ "https://github.com/cgrindel/bazel-starlib/releases/download/v0.14.4/bazel-starlib.v0.14.4.tar.gz", ], ) load("@​cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies") bazel_starlib_dependencies() load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() ``` </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/cgrindel/swift_bazel). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [cgrindel_bazel_starlib](https://togithub.com/cgrindel/bazel-starlib) | http_archive | patch | `v0.14.4` -> `v0.14.7` | --- ### Release Notes <details> <summary>cgrindel/bazel-starlib</summary> ### [`v0.14.7`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.14.7) [Compare Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.14.6...v0.14.7) #### What's Changed - Update README.md for v0.14.6 by [@​cgrindel-app-token-generator](https://togithub.com/cgrindel-app-token-generator) in [https://github.com/cgrindel/bazel-starlib/pull/253](https://togithub.com/cgrindel/bazel-starlib/pull/253) - chore: more debug for buildifier.sh by [@​cgrindel](https://togithub.com/cgrindel) in [https://github.com/cgrindel/bazel-starlib/pull/254](https://togithub.com/cgrindel/bazel-starlib/pull/254) **Full Changelog**: cgrindel/bazel-starlib@v0.14.6...v0.14.7 #### Workspace Snippet ```python load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "cgrindel_bazel_starlib", sha256 = "eaee02fa26e0114b244a30cffac6bb7ee55162bd347e8ab4d22dee42cee88ac5", urls = [ "https://github.com/cgrindel/bazel-starlib/releases/download/v0.14.7/bazel-starlib.v0.14.7.tar.gz", ], ) load("@​cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies") bazel_starlib_dependencies() load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() ``` ### [`v0.14.6`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.14.6) [Compare Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.14.5...v0.14.6) #### What's Changed - Update README.md for v0.14.5 by [@​cgrindel-app-token-generator](https://togithub.com/cgrindel-app-token-generator) in [https://github.com/cgrindel/bazel-starlib/pull/251](https://togithub.com/cgrindel/bazel-starlib/pull/251) - chore: add more debug code to `buildifier.sh` by [@​cgrindel](https://togithub.com/cgrindel) in [https://github.com/cgrindel/bazel-starlib/pull/252](https://togithub.com/cgrindel/bazel-starlib/pull/252) **Full Changelog**: cgrindel/bazel-starlib@v0.14.5...v0.14.6 #### Workspace Snippet ```python load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "cgrindel_bazel_starlib", sha256 = "be0c678818ad9b1f31ad8827c247bcd59135793e053a5fec0f0c08371a97e0da", urls = [ "https://github.com/cgrindel/bazel-starlib/releases/download/v0.14.6/bazel-starlib.v0.14.6.tar.gz", ], ) load("@​cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies") bazel_starlib_dependencies() load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() ``` ### [`v0.14.5`](https://togithub.com/cgrindel/bazel-starlib/releases/tag/v0.14.5) [Compare Source](https://togithub.com/cgrindel/bazel-starlib/compare/v0.14.4...v0.14.5) #### What's Changed - fix: switch to runfiles.bash v3 by [@​cgrindel](https://togithub.com/cgrindel) in [https://github.com/cgrindel/bazel-starlib/pull/249](https://togithub.com/cgrindel/bazel-starlib/pull/249) - fix: update `MODULE.bazel` to use `go_default_sdk` by [@​cgrindel](https://togithub.com/cgrindel) in [https://github.com/cgrindel/bazel-starlib/pull/250](https://togithub.com/cgrindel/bazel-starlib/pull/250) **Full Changelog**: cgrindel/bazel-starlib@v0.14.4...v0.14.5 #### Workspace Snippet ```python load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "cgrindel_bazel_starlib", sha256 = "db89cac4a8d6c0e39589304db0dc1c97c083f6f2a122089aceb3d8efc1511a95", urls = [ "https://github.com/cgrindel/bazel-starlib/releases/download/v0.14.5/bazel-starlib.v0.14.5.tar.gz", ], ) load("@​cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies") bazel_starlib_dependencies() load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() ``` </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/cgrindel/github_snippets). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Alias the
go_default_sdk
to bego_sdk
so that we can support with and without bzlmod enabled.Closes #248.