-
Notifications
You must be signed in to change notification settings - Fork 0
error: internal error: accessed dependencies from pyproject.nix project, not uv.lock #34
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
Comments
Many thanks for reporting this @srid. We're using a one-line command directly from the README (or with my global om installation locally via Lines 25 to 40 in 660ec17
Here's the associated CI log: There are two issues
We could use (diff with update on RHS) om init github:sciexp/python-nix-template -o sample --non-int om init github:sciexp/python-nix-template -o sample --non-int
"package-name-kebab-case": "sample", "package-name-kebab-case": "sample",
"package-name-snake-case": "sample", "package-name-snake-case": "sample",
"monorepo-package": false, "monorepo-package": false,
"git-org": "srid", "git-org": "srid",
"author": "Srid", "author": "Srid",
"author-email": "[email protected]", "author-email": "[email protected]",
"vscode": true, "vscode": true,
"github-ci": true, "github-ci": true,
"nix-template": false "nix-template": false
}' && \ }' && \
> direnv revoke ./sample/ && \
cd sample && \ cd sample && \
git init && \ git init && \
git commit --allow-empty -m "initial commit (empty)" && \ git commit --allow-empty -m "initial commit (empty)" && \
> nix run github:NixOS/nixpkgs/nixos-unstable#uv -- lock && \
git add . && \ git add . && \
nix develop --accept-flake-config -c pytest | direnv allow && \
> eval "$(direnv export $(basename $SHELL))" && \
> pytest but it's a bit ugly and confusing to require the om init github:sciexp/python-nix-template -o sample --non-interactive --params '{
"package-name-kebab-case": "sample",
"package-name-snake-case": "sample",
"monorepo-package": false,
"git-org": "srid",
"author": "Srid",
"author-email": "[email protected]",
"vscode": true,
"github-ci": true,
"nix-template": false
}' && \
(command -v direnv >/dev/null 2>&1 && direnv revoke ./sample/ || true) && \
cd sample && \
git init && \
git commit --allow-empty -m "initial commit (empty)" && \
nix run github:NixOS/nixpkgs/nixos-unstable#uv -- lock && \
git add . && \
nix develop --accept-flake-config -c pytest && \
echo "Run 'direnv allow' to activate the nix devshell with direnv" and leave it to the user to run Added a slightly modified version of this in |
Incidentally noted potential for confusion regarding the template string replacement of one of the cache names in when reviewing this. |
Feel free to reopen if #38 and the discussion above didn't resolve this for you. |
description
On NixOS, activating direnv leads to:
environment
I'm on NixOS with Nix 2.24.10. Initiated the template like this:
The text was updated successfully, but these errors were encountered: