Skip to content

Commit c0f6612

Browse files
committed
fix(ci): avoid relative path flake input in examples
The CI job failed during `nix flake check --no-build` with: error: cannot fetch input 'path:../.?lastModified=0&narHash=...' because it uses a relative path This comes from examples/flake.nix using a relative flake input: rustfs-flake.url = "path:../."; Relative path-based flake inputs are rejected in CI evaluation contexts. Switch the example to use a GitHub flake URL so `nix flake check` and `nix eval` work reliably on GitHub Actions. Changes: - examples/flake.nix: replace `rustfs-flake.url = "path:../.";` with `rustfs-flake.url = "github:rustfs/rustfs-flake?ref=main";` Refs: - Failing job: https://github.com/rustfs/rustfs-flake/actions/runs/24138134845/job/70431678489
1 parent 6cb981c commit c0f6612

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ jobs:
5151
- name: Evaluate example configuration
5252
run: |
5353
cd examples
54-
nix eval .#nixosConfigurations.example-host.config.services.rustfs.enable
54+
nix eval --override-input rustfs-flake "path:${GITHUB_WORKSPACE}" \
55+
.#nixosConfigurations.example-host.config.services.rustfs.enable
5556
5657
build-linux-package:
5758
name: Build Linux package

examples/flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
inputs = {
1919
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
20-
rustfs-flake.url = "path:../.";
20+
rustfs-flake.url = "github:rustfs/rustfs-flake?ref=main";
2121
};
2222

2323
outputs = { self, nixpkgs, rustfs-flake }: {

0 commit comments

Comments
 (0)