Skip to content

Add --incompatible_allow_status_files_without_stamp (fixes #14341)#9

Closed
alexeagle wants to merge 2 commits into
masterfrom
incompatible-allow-status-files-without-stamp
Closed

Add --incompatible_allow_status_files_without_stamp (fixes #14341)#9
alexeagle wants to merge 2 commits into
masterfrom
incompatible-allow-status-files-without-stamp

Conversation

@alexeagle

Copy link
Copy Markdown

Summary

Test plan

  • bazel test //src/test/java/com/google/devtools/build/lib/starlark:StarlarkTests --test_filter=infoFile_*
  • Run src/test/shell/bazel/bazel_workspace_status_test.sh (specifically test_allow_status_files_without_stamp)
  • Verify default builds still allow ctx.info_file without --stamp
  • Verify --noincompatible_allow_status_files_without_stamp fails unstamped rules and succeeds with --stamp

Fixes bazelbuild#14341 by introducing
--incompatible_allow_status_files_without_stamp (default true) so rule
authors can opt into requiring stamp/--stamp before ctx.info_file and
ctx.version_file are available.
Use --incompatible_prevent_status_files_without_stamp (default false) per
Bazel breaking-change guidance, and add a test for stamp transitions on
dependency edges.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to disallow rules from including stable-status/volatile-status as action inputs

1 participant