1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

ci: extract-maintainers handle non-existent files (#7469)

Since we're checking out the `pull_request_target` and not the
`pull_request` branch. We can't evaluate the files from the PR branch.
We can skip the files for evaluation without crashing the entire
extraction.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-07-13 23:32:19 -05:00 committed by GitHub
parent 1a4d8ffd32
commit 1e54837569
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,13 +11,15 @@ let
file:
let
isNixFile = lib.hasSuffix ".nix" file;
filePath = ../../. + "/${file}";
fileExists = builtins.pathExists filePath;
moduleResult =
if isNixFile then
if isNixFile && fileExists then
let
result = builtins.tryEval (
let
fileContent = import (../../. + "/${file}");
fileContent = import filePath;
module =
if lib.isFunction fileContent then