Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

om ci run —on fails if flake input is private repo #377

Open
rsrohitsingh682 opened this issue Jan 14, 2025 · 3 comments
Open

om ci run —on fails if flake input is private repo #377

rsrohitsingh682 opened this issue Jan 14, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@rsrohitsingh682
Copy link
Member

When using om ci run —on option to run ci on a remote machine, the expectation is all flake inputs should be copied to the remote machine.

But it fails when flake input is of private repo.

Screenshot 2025-01-14 at 8 37 03 PM

Steps to reproduce:

nix run github:juspay/omnix — ci run --on ssh://<user>@<ip> github:rsrohitsingh682/haskell-repo

@rsrohitsingh682 rsrohitsingh682 added the bug Something isn't working label Jan 14, 2025
@srid srid added this to the `omnix-cli` MVP milestone Jan 14, 2025
@srid
Copy link
Member

srid commented Jan 14, 2025

While the description shows that the error is during nix eval, when I tried to reproduce it happened around nix build:

image

@srid
Copy link
Member

srid commented Jan 14, 2025

Ah, omnix never copied the private repo:

Screenshot 2025-01-14 at 10 33 24 AM

So nix copy'ing a flake does not automatically copy over its flake inputs.

@srid
Copy link
Member

srid commented Jan 16, 2025

The solution is to move away from nix flake metadata to something else (an expression defined in Nix, just like devour-flake) for retrieving flake metadata including outPath's of flake inputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants