-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
crawl: use static config for data files #65494
crawl: use static config for data files #65494
Conversation
Hi @virusdave. Would or is
Does that mean the program looks for datafiles relative to where it was executed? |
Can you also change the commit msg to what I edited the PR title to? |
Not sure. I can don't have a linux box, but i can re-read the code tonight perhaps. The program has a hardcoded set of absolute and relative paths to look for its data files. On OSX, these are "normal" locations you'd expect installed programs to live, not the nix store. The relative paths in the list are based on where the CWD was when the program was executed, not where the program actually lives on the FS.
Yes, relative to the CWD when it was executed (not where the binary itself lives, which would have also solved the problem). |
Sure, i'll do this tonight and update the PR. |
4a79b58
to
1e93f76
Compare
@worldofpeace I've updated the commit title. |
So I guess it would be okay to do this for linux also? |
5422b50
to
76adf61
Compare
Ok, i've removed the conditional check for |
I'm using NixOS so I can test for you 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@virusdave This worked for me. Please squash and rephrase your commit msg.
Actually, what is the expected directory of |
Tested on a nixos docker container and this works still. |
|
This allows the game to be executed from anywhere, not just the install directory in the nix store.
76adf61
to
f6ebeb8
Compare
Done. |
@virusdave Thanks. I'm confident we can merge this. |
This allows the game to be executed from anywhere, not just from the package /bin
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)