Skip to content

Changes for bzlmod

Mikhail Mazurskiy requested to merge ash2k/bzlmod into main

Relates to Migrate Bazel dependency management to bzlmod (gitlab-agent#411 - closed).

This is required for the migration in Bazel workspace -> bzlmod (gitlab-agent!1611 - merged) to work. See https://gitlab.com/gitlab-org/cluster-integration/gitlab-agent/-/jobs/7333762688:

(11:58:08) INFO: Repository rules_python~~python~python_3_11_x86_64-unknown-linux-gnu instantiated at:
  <builtin>: in <toplevel>
Repository rule python_repository defined at:
  /root/.cache/bazel/_bazel_root/9ca8268df963885560ea55034139bea5/external/rules_python~/python/repositories.bzl:402:36: in <toplevel>
(11:58:08) ERROR: An error occurred during the fetch of repository 'rules_python~~python~python_3_11_x86_64-unknown-linux-gnu':
   Traceback (most recent call last):
	File "/root/.cache/bazel/_bazel_root/9ca8268df963885560ea55034139bea5/external/rules_python~/python/repositories.bzl", line 205, column 25, in _python_repository_impl
		fail("The current user is root, please run as non-root when using the hermetic Python interpreter. See https://github.com/bazelbuild/rules_python/pull/713.")
Error in fail: The current user is root, please run as non-root when using the hermetic Python interpreter. See https://github.com/bazelbuild/rules_python/pull/713.
(11:58:08) ERROR: no such package '@@rules_python~~python~python_3_11_x86_64-unknown-linux-gnu//': The current user is root, please run as non-root when using the hermetic Python interpreter. See https://github.com/bazelbuild/rules_python/pull/713.
(11:58:08) ERROR: /root/.cache/bazel/_bazel_root/9ca8268df963885560ea55034139bea5/external/rules_pkg~/pkg/private/tar/BUILD:47:10: @@rules_pkg~//pkg/private/tar:build_tar depends on @@rules_python~~python~python_3_11_x86_64-unknown-linux-gnu//:python_runtimes in repository @@rules_python~~python~python_3_11_x86_64-unknown-linux-gnu which failed to fetch. no such package '@@rules_python~~python~python_3_11_x86_64-unknown-linux-gnu//': The current user is root, please run as non-root when using the hermetic Python interpreter. See https://github.com/bazelbuild/rules_python/pull/713.
(11:58:08) Analyzing: 197 targets (280 packages loaded, 20285 targets configured)
[1 / 1] checking cached actions
(11:58:08) ERROR: Analysis of target '//cmd/agentk:push' failed; build aborted: Analysis failed
(11:58:08) INFO: Elapsed time: 15.328s, Critical Path: 0.05s
(11:58:08) INFO: 1 process: 1 internal.
(11:58:08) ERROR: Build did NOT complete successfully
(11:58:08) FAILED: 
Edited by Mikhail Mazurskiy

Merge request reports

Loading