Skip to content
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

Fails with Bazel 8 #67

Closed
avdv opened this issue Dec 10, 2024 · 1 comment
Closed

Fails with Bazel 8 #67

avdv opened this issue Dec 10, 2024 · 1 comment

Comments

@avdv
Copy link
Contributor

avdv commented Dec 10, 2024

Hi 👋

Since Bazel 8 has been released, running bazelisk inside of this action will happily try to use it but fails:

ERROR: Skipping '//tools:check_jobs': error loading package 'tools': Unable to find package for @@[unknown repo 'cgrindel_bazel_starlib' requested from @@]//bzlformat:defs.bzl: The repository '@@[unknown repo 'cgrindel_bazel_starlib' requested from @@]' could not be resolved: No repository visible as '@cgrindel_bazel_starlib' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration.
ERROR: error loading package 'tools': Unable to find package for @@[unknown repo 'cgrindel_bazel_starlib' requested from @@]//bzlformat:defs.bzl: The repository '@@[unknown repo 'cgrindel_bazel_starlib' requested from @@]' could not be resolved: No repository visible as '@cgrindel_bazel_starlib' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration.

See https://github.com/tweag/rules_sh/actions/runs/12251332036/job/34175905182?pr=96


I can workaround using:

- uses: cgrindel/gha_join_jobs@794a2d117251f22607f1aab937d3fd3eaaf9a2f5 # v1
        env:
          USE_BAZEL_VERSION: '7.x'
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
avdv added a commit to tweag/rules_sh that referenced this issue Dec 10, 2024
It used the latest Bazel version by default and failed, see cgrindel/gha_join_jobs#67
avdv added a commit to avdv/gha_join_jobs that referenced this issue Dec 10, 2024
@cgrindel
Copy link
Owner

Thanks, @avdv . I am pushing a quick fix for now. I will upgrade the repo, this week.

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 a pull request may close this issue.

2 participants