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

Bazel Steward #254

Open
vorburger opened this issue Jul 1, 2023 · 4 comments
Open

Bazel Steward #254

vorburger opened this issue Jul 1, 2023 · 4 comments
Labels
build Build, CI, etc. (w.o. #testing) dependencies Pull requests that update a dependency file enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@vorburger
Copy link
Member

@vorburger vorburger added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers dependencies Pull requests that update a dependency file build Build, CI, etc. (w.o. #testing) labels Jul 1, 2023
@vorburger
Copy link
Member Author

@vorburger
Copy link
Member Author

https://virtuslab.github.io/bazel-steward/#locally

coursier launch org.virtuslab:bazel-steward:1.5.0 --main org.virtuslab.bazelsteward.app.Main -- --no-remote --analyze-only

does:

[main] INFO org.virtuslab.bazelsteward.app.App - Update suggestions (1):
bazel 8.0.1 -> 8.1.0
[DefaultDispatcher-worker-2] INFO org.virtuslab.bazelsteward.core.common.CommandRunner - bazel mod graph --depth=1
[main] WARN org.virtuslab.bazelsteward.app.App - Error happened during detecting available versions for bzlmod. Skipping this dependency kind...
[main] WARN org.virtuslab.bazelsteward.app.App - Error details: bazel mod graph --depth=1
<root> (@_)
├───[email protected]
├───[email protected]
├───[email protected]
├───[email protected]
├───[email protected]
├───[email protected]
└───[email protected]


 no actions running
ERROR: Traceback (most recent call last):
        File "/home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/external/rules_apple+/apple/internal/apple_xcframework_import.bzl", line 775, column 21, in <toplevel>
                apple_common.AppleDynamicFramework,
Error: 'struct' value has no field or method 'AppleDynamicFramework'
Available attributes: Objc, XcodeProperties, XcodeVersionConfig, apple_host_system_env, apple_platform, apple_toolchain, compilation_support, dotted_version, get_apple_config, get_cpu, get_split_build_configs, get_split_prerequisites, new_objc_provider, platform, platform_type, target_apple_env
ERROR: @@bazel_tools//tools/cpp:cc_configure.bzl does not export a module extension called cc_configure_extension, yet its use is requested at https://bcr.bazel.build/modules/abseil-cpp/20240722.0/MODULE.bazel:23:29
ERROR: Error loading '@@rules_apple+//apple:apple.bzl' for module extensions, requested by https://bcr.bazel.build/modules/rules_apple/3.5.1/MODULE.bazel:27:48: at /home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/external/rules_apple+/apple/apple.bzl:27:5: initialization of module 'apple/internal/apple_xcframework_import.bzl' failed: at /home/vorburger/.cache/bazel/_bazel_vorburger/a3cf8df34f0c7a76e9926daaad9ffbf4/external/rules_apple+/apple/apple.bzl:27:5: initialization of module 'apple/internal/apple_xcframework_import.bzl' failed
ERROR: Results may be incomplete as 2 extensions failed.

[main] INFO org.virtuslab.bazelsteward.app.App - Update suggestions (0):

[DefaultDispatcher-worker-2] INFO org.virtuslab.bazelsteward.core.common.CommandRunner - bazel build @all_external_repositories//:result.json
[main] WARN org.virtuslab.bazelsteward.app.App - Error happened during detecting available versions for bazel-rules. Skipping this dependency kind...
[main] WARN org.virtuslab.bazelsteward.app.App - Error details: bazel build @all_external_repositories//:result.json

Computing main repo mapping:
Loading:
Loading: 0 packages loaded
WARNING: Target pattern parsing failed.
ERROR: Skipping '@all_external_repositories//:result.json': No repository visible as '@all_external_repositories' from main repository
ERROR: No repository visible as '@all_external_repositories' from main repository
INFO: Elapsed time: 0.089s
INFO: 0 processes.
ERROR: Build did NOT complete successfully

[main] INFO org.virtuslab.bazelsteward.app.App - Update suggestions (0):

[DefaultDispatcher-worker-2] INFO org.virtuslab.bazelsteward.core.common.CommandRunner - bazel query @maven//:outdated.repositories --output xml --noshow_progress
[main] ERROR org.virtuslab.bazelsteward.maven.MavenDependencyKind - Failed to extract used maven dependencies. Bazel Steward supports rules_jvm_external 4.0 or newer
[main] WARN org.virtuslab.bazelsteward.app.App - Error happened during detecting available versions for maven. Skipping this dependency kind...
[main] WARN org.virtuslab.bazelsteward.app.App - Error details: bazel query @maven//:outdated.repositories --output xml --noshow_progress

ERROR: No repository visible as '@maven' from main repository

VirtusLab/bazel-steward#401 created about this.

@vorburger
Copy link
Member Author

vorburger commented Mar 1, 2025

I've played with this again today, and with it so far manually got #1147 (🚀) ; for full automation remaining TODO:

@lukaszwawrzyk Thank You for Bazel Steward!

@vorburger
Copy link
Member Author

FTR, https://github.com/enola-dev/enola/branches/all?query=bazel-steward (currently) has:

  • bazel-steward/org.apache.maven.resolver/maven-resolver-util/2.0.7
  • bazel-steward/org.apache.maven.resolver/maven-resolver-api/2.0.7
  • bazel-steward/com.github.spotbugs/spotbugs-annotations/4.9.2
  • bazel-steward/io.github.amithkoujalgi/ollama4j/1.0.94
  • bazel-steward/io.kubernetes/client-java/23.0.0
  • bazel-steward/com.google.api.grpc/proto-google-cloud-pubsub-v1/1.119.1
  • bazel-steward/rules_go/0.53.0

So once the WIP GitHub Action works, it should normally create 7 PRs...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build, CI, etc. (w.o. #testing) dependencies Pull requests that update a dependency file enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant