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

Use ctx.version_file in place of a genrule with stamp=True #162

Merged
merged 1 commit into from
Mar 23, 2018

Conversation

alexeagle
Copy link
Collaborator

@alexeagle alexeagle commented Mar 23, 2018

Fixes #156

See discussion in bazelbuild/bazel#4842
and this fix is based on bazelbuild/bazel#1054 (comment)


inputs = ctx.files.srcs + devmode_sources + nested_packages + [ctx.file._run_npm_template]
if ctx.file.stamp_data:
inputs.append(ctx.file.stamp_data)
if ctx.version_file:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be worth adding a comment here, too.

@alexeagle alexeagle merged commit 6ac160f into bazel-contrib:master Mar 23, 2018
@alexeagle alexeagle deleted the stamping branch March 23, 2018 19:15
alexeagle pushed a commit to alexeagle/rules_nodejs that referenced this pull request Oct 17, 2020
Closes bazel-contrib#162

PiperOrigin-RevId: 191444855
alexeagle pushed a commit to alexeagle/rules_nodejs that referenced this pull request Oct 18, 2020
Closes bazel-contrib#162

PiperOrigin-RevId: 191444855
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 this pull request may close these issues.

Documentation for stamping is incorrect
2 participants