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 ci]Error no native function or rules 'sh_binary' - need to make a new release with fix #547

Open
sgowroji opened this issue Oct 14, 2024 · 2 comments
Labels
P1 I'll work on this now. (Assignee required)

Comments

@sgowroji
Copy link
Member

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4198#01928934-370b-445d-a0f4-65e1ce9d1213

Platform: Ubuntu

Logs:

ERROR: Traceback (most recent call last):
	File "/var/lib/buildkite-agent/builds/bk-docker-ms75/bazel-org-repo-root/bazel-skylib/docs/BUILD", line 182, column 12, in <toplevel>
		update_docs(
	File "/var/lib/buildkite-agent/builds/bk-docker-ms75/bazel-org-repo-root/bazel-skylib/docs/private/stardoc_with_diff_test.bzl", line 107, column 11, in update_docs
		native.sh_binary(
Error: no native function or rule 'sh_binary'
Available attributes: action_listener, alias, available_xcodes, cc_binary, cc_import, cc_libc_top_alias, cc_library, cc_proto_library, cc_shared_library, cc_static_library, cc_test, cc_toolchain, cc_toolchain_alias, cc_toolchain_suite, config_feature_flag, config_setting, constraint_setting, constraint_value, environment, existing_rule, existing_rules, exports_files, extra_action, fdo_prefetch_hints, fdo_profile, filegroup, genquery, genrule, glob, java_binary, java_import, java_library, java_lite_proto_library, java_package_configuration, java_plugin, java_plugins_flag_alias, java_proto_library, java_runtime, java_test, java_toolchain, label_flag, label_setting, legacy_globals, memprof_profile, module_name, module_version, objc_import, objc_library, package, package_group, package_name, package_relative_label, platform, propeller_optimize, proto_lang_toolchain, proto_library, repo_name, repository_name, starlark_doc_extract, subpackages, test_suite, toolchain, toolchain_type, xcode_config, xcode_config_alias, xcode_version
(04:10:02) ERROR: package contains errors: docs
(04:10:02) ERROR: package contains errors: docs: Traceback (most recent call last):
	File "/var/lib/buildkite-agent/builds/bk-docker-ms75/bazel-org-repo-root/bazel-skylib/docs/BUILD", line 182, column 12, in <toplevel>
		update_docs(
	File "/var/lib/buildkite-agent/builds/bk-docker-ms75/bazel-org-repo-root/bazel-skylib/docs/private/stardoc_with_diff_test.bzl", line 107, column 11, in update_docs
		native.sh_binary(
Error: no native function or rule 'sh_binary'

Culprit:

Steps:

git clone https://github.com/bazelbuild/bazel-skylib
git reset 56b235e700ddd6a15b7d9fa1803fa7a84048471e  --hard
export USE_BAZEL_VERSION=00fdb673ba8276e83f1c821a7f93aab7038377e2
bazel build --incompatible_config_setting_private_default_visibility --incompatible_disallow_empty_glob //... @external_directory_tests//... @bazel_skylib_gazelle_plugin//... 

CC Greenteam @meteorcloudy

@sgowroji
Copy link
Member Author

CC @tetromino @comius

@tetromino
Copy link
Collaborator

Thanks. This was fixed in skylib at head by 6edf03b, but we need to make a new skylib release containing this fix.

@tetromino tetromino added the P1 I'll work on this now. (Assignee required) label Jan 16, 2025
@tetromino tetromino changed the title [Bazel ci]Error no native function or rules 'sh_binary' [Bazel ci]Error no native function or rules 'sh_binary' - need to make a new release with fix Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 I'll work on this now. (Assignee required)
Projects
None yet
Development

No branches or pull requests

2 participants