-
Notifications
You must be signed in to change notification settings - Fork 50
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
Nix flake is broken #475
Comments
I'm not very knowledgeable on Nix flakes, perhaps @Programmerino can help you? |
Based on some local testing, deleting the 3.3.0 files under When I delete those locally, I get an error from your regression test that runs in the build step:
And when I comment out that test, everything else builds fine. |
Hmm those dist files don't need to be there. |
Okay so I'm not sure why, but the copy_vault_to_tempdir feature is not working in the nix install part, and instead of failing, it just keeps chugging along? The issue is that both the copy_vault_to_tempdir feature and the filetree component do exclusions, and apparently the latter had a bug in its exclusion system causing it to not exclude the I fixed that, removed the dist folder, and now after running |
If you create a branch off master with your changes, I can test it on my end and double check that it works. |
Not sure why you need a separate branch, but I created nix_test just now. But good luck, let me know how it goes |
A separate branch isn't necessary if you're already pushing the changes to master, I was thinking of the case where the changes would be tested before merging to the trunk.
Looks like your fixes worked! Thanks for the prompt attention, I'm looking forward to trying this out. |
Hey! Are there any lasting questions about the Nix build or does everything look like it's fixed? For the Finally, if there are any changes I could make to make it easier to maintain, let me know. |
For me an open question is how to setup a regression test in github actions for this. I could just write a local test of course, but then I'll have to remember to run it each time. Know anything out of the top of your head? |
Nix builds are deterministic, so if you run locally once, it should cache anything it doesn't need to rebuild if you run it a second time. I'm not familiar with GitHub Actions, so I don't know how what tech exists for bridging it to Nix builds. I suspect using GitHub-hosted Action runners would mean re-downloading everything on each run, especially if there was containerization that prevented subsequent builds from sharing a Nix store. This particular failure involved the regression test failing, so I think I just found the repo at a bad time between patches. |
@Programmerino Is
I'm not sure that's true. I still get that error for the current HEAD:
Adding
This seems to be a known issue with using IFD in flakes: NixOS/nix#5253 |
As for IFD, that pull request you linked is only for certain Nix operations, like the |
I'm sorry for missing this earlier! It seems like this is the most efficient solution right now and should cache all of the downloads you were encountering. Instead of |
Hi there! It seems, as if the nix flake is currently broken again. I ran --------------------- IndexFromTags -----------------------------
...
[ INFO ] module.controller.run_module() :: copy_vault_to_tempdirectory.run()
Traceback (most recent call last):
...
File "/nix/store/sz0j8k8ljh7y8qgyfxgqb3ws11bcy4gs-python3-3.10.6/lib/python3.10/pathlib.py", line 1175, in mkdir self._accessor.mkdir(self, mode) FileNotFoundError: [Errno 2] No such file or directory: '/homeless-shelter/.config/obsidianhtml/tmpdir/input'
...
self.parent.mkdir(parents=True, exist_ok=True)
...
PermissionError: [Errno 13] Permission denied: '/homeless-shelter'
IndexFromTags: > (self check) config dict should have been fetched .
IndexFromTags: > index.html should exist in the expected path F Sorry for the bad formatting, I tried to copy this from Termux on my Android mobile 😂 |
Some contributor made the nix flake so I don't know much about that, but the error here is suggests that it tries to create the folder Normally, it should try to create this folder at Kind of a bummer, but this path was never made configurable. You might try disabling copy-vault-to-tempdir, though the compiled config file should also be written to ps. Pretty sure that this is not a nix flake related issue, unless you can attest that is works the "normal" way but not with the nix flake. If it's not a nix flake related issue, please make a new issue for your problem. |
I was excited to see the flake configs in this repo, but it seems like it isn't working.
Attempting to use
nix run
ornix build
gives the same unusual versioning error:nix develop
seems to work fine, though.The text was updated successfully, but these errors were encountered: