-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
630 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Self-hosted Renovate | ||
uses: renovatebot/github-action@v34.92.1 | ||
uses: renovatebot/github-action@v34.94.0 | ||
with: | ||
configurationFile: renovate.json | ||
token: ${{ secrets.GH_PAT }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ alias( | |
name = "rustfmt", | ||
actual = "@rules_rust//:rustfmt", | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# Nothing here yet | ||
# Nothing here yet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,46 @@ | ||
def git_commit_affecting_files(name, srcs = [], **kwargs): | ||
native.filegroup( | ||
name = name + "_srcs", | ||
srcs = srcs | ||
srcs = srcs, | ||
) | ||
native.genrule( | ||
name = name, | ||
srcs = [ "//:.git", name + "_srcs" ], | ||
srcs = ["//:.git", name + "_srcs"], | ||
cmd_bash = """ | ||
git log -n 1 --pretty=format:%H -- $(rootpaths :""" + name + """_srcs) > $@ | ||
""", | ||
outs = [ name + ".gitref" ] | ||
outs = [name + ".gitref"], | ||
) | ||
|
||
def source_files_for_rule(name, rule, **kwargs): | ||
rulename = native.repository_name() + "//" + native.package_name() + rule | ||
native.genquery( | ||
name = name + "_labels", | ||
expression = "filter(\"^//\", kind(\"source file\", deps(" + rulename + ")))", | ||
scope = [ rulename ], | ||
opts = [ ] | ||
scope = [rulename], | ||
opts = [], | ||
) | ||
|
||
native.genrule( | ||
name = name, | ||
srcs = [ name + "_labels" ], | ||
srcs = [name + "_labels"], | ||
# turn labels into paths (for whatever reason, genquery doesn't let you do this) | ||
cmd_bash = "sed -r 's/\\/\\///;s/:/\\//g;s/^[\\/]+//' $< > $@", | ||
outs = [ name + "_labels.out" ] | ||
outs = [name + "_labels.out"], | ||
) | ||
|
||
def commit_affecting_rule(name, rule, **kwargs): | ||
source_files_for_rule( | ||
name = name + "_source_files", rule = rule, **kwargs | ||
name = name + "_source_files", | ||
rule = rule, | ||
**kwargs | ||
) | ||
|
||
native.genrule( | ||
name = name, | ||
srcs = [ "//:.git", ":" + name + "_source_files" ], | ||
srcs = ["//:.git", ":" + name + "_source_files"], | ||
cmd_bash = """ | ||
git log -n 1 --pretty=format:%H -- $$(cat $(location :""" + name + "_source_files" + """)) > $@ | ||
""", | ||
outs = [ name + ".gitref" ] | ||
outs = [name + ".gitref"], | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# nothing here yet! | ||
# nothing here yet! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.