Skip to content

Commit

Permalink
Update link to example from angular (#388)
Browse files Browse the repository at this point in the history
* Update link to example from angular

Previous target was deleted or renamed. Now use a permalink.

* bazel run @//docs:update
  • Loading branch information
garymm authored Mar 7, 2023
1 parent 6b1f08c commit e872660
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/stamping.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/stamping.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The value of this flag is a path to a script that prints space-separated key/val
#!/usr/bin/env bash
echo STABLE_GIT_COMMIT $(git rev-parse HEAD)
```
> For a more full-featured script, take a look at the [bazel_stamp_vars in Angular]
> For a more full-featured script, take a look at this [example in Angular]
Make sure you set the executable bit, eg. `chmod +x tools/bazel_stamp_vars.sh`.
Expand All @@ -45,7 +45,7 @@ You might like to encode your setup using an entry in `.bazelrc` such as:
build:release --stamp --workspace_status_command=./tools/bazel_stamp_vars.sh
```
[bazel_stamp_vars in Angular]: https://github.com/angular/angular/blob/master/tools/bazel_stamp_vars.sh
[example in Angular]: https://github.com/angular/angular/blob/df274b478e6597cb1a2f31bb9f599281065aa250/dev-infra/release/env-stamp.ts
## Writing a custom rule which reads stamp variables
Expand Down

0 comments on commit e872660

Please sign in to comment.