mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
maintainers/scripts/sha-to-sri: ignore gemset.nix
files
This commit is contained in:
parent
87ad80ef3b
commit
4ebe4a2089
@ -201,6 +201,10 @@ def fileToSRI(p: Path):
|
|||||||
|
|
||||||
|
|
||||||
_SKIP_RE = re.compile("(generated by)|(do not edit)", re.IGNORECASE)
|
_SKIP_RE = re.compile("(generated by)|(do not edit)", re.IGNORECASE)
|
||||||
|
_IGNORE = frozenset({
|
||||||
|
"gemset.nix",
|
||||||
|
"yarn.nix",
|
||||||
|
})
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
from sys import argv
|
from sys import argv
|
||||||
@ -239,7 +243,7 @@ if __name__ == "__main__":
|
|||||||
logger.info("Recursing into directory")
|
logger.info("Recursing into directory")
|
||||||
for q in p.glob("**/*.nix"):
|
for q in p.glob("**/*.nix"):
|
||||||
if q.is_file():
|
if q.is_file():
|
||||||
if q.name == "yarn.nix" or q.name.find("generated") != -1:
|
if q.name in _IGNORE or q.name.find("generated") != -1:
|
||||||
logger.info("File looks autogenerated, skipping!")
|
logger.info("File looks autogenerated, skipping!")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user