-
Notifications
You must be signed in to change notification settings - Fork 26
Usage with nix #90
Comments
The problem here seems to be related to Cargo, not to Nix. It seems a command is being used which does not support workspaces, or is not expecting a workspace, but rather a regular, single crate. This is especially true for the current setup, which includes a top-level Cargo.toml with specs for both the binary crate and the workspace itself. A possible solution would be for @astrale-sharp to add a separate |
Hey there! Can I get reproducable steps to investigate? I can't exactly pinpoint what's happening yet |
Thanks for your report btw ! |
Using the same steps I end up with something working so I don't know what the problem is. Do you have other pre-commit installed? |
Ah, that might be it. I'm pulling pre-commit from nixpkgs which has it on version 3.3.3. I can confirm I only have one version of it on my PATH. |
I added you to a private repo that I'm using for note-taking. To reproduce, |
nix develop fails
|
nix (Nix) 2.6.0 |
Try: |
What architecture are you on? If you're on a arm mbp, you may need to run |
x86_64 ! |
using your new command I get
even tho |
Oops I think I typoed and put |
In order to not require the mkdir -p ~/.config/nix
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf Source: NixOS wiki |
I don't have considerable time for this atm, if someone else is ready to investigate what's happening there that would be nice |
I added
pre-commit
to my package list, andpre-commit install && pre-commit autoupdate
to my nix-shell shellHook. I created a default config (typstfmt --make-default-config), then echoed into the pre-commit config per the readme. When I commit, I get the following error:I'm not sure what to make of this. Advice would be appreciated!
Note: I am on NixOS.
The text was updated successfully, but these errors were encountered: