Closed crobbo closed 3 months ago
What I commonly run into is forgetting to add/stage the gemset.nix file into git. Without doing that, Nix is not able to find it.
Thanks, this allowed me to overcome my problem 👍🏻
Apologies if this is the wrong place to ask but I'm struggling to find an answer.
I'm using this with a Ruby on Rails app. In my gemset.nix file lots of gems use the same rails git repo, for example these two:
actioncable = {
dependencies = ["actionpack" "activesupport" "nio4r" "websocket-driver" "zeitwerk"];
groups = ["default" "development"];
platforms = [];
source = {
fetchSubmodules = false;
rev = "1f6cef4ca546b3a9f7aa12c0f10c7d1d1cfbab5a";
sha256 = "0fk0a0kq1wcgdnccpxix7r7x2y21awh2ipi808gy7wma5rgayxm9";
type = "git";
url = "https://github.com/rails/rails.git";
};
version = "7.2.0.alpha";
};
actionmailbox = {
dependencies = ["actionpack" "activejob" "activerecord" "activestorage" "activesupport" "mail"];
groups = ["default"];
platforms = [];
source = {
fetchSubmodules = false;
rev = "1f6cef4ca546b3a9f7aa12c0f10c7d1d1cfbab5a";
sha256 = "0fk0a0kq1wcgdnccpxix7r7x2y21awh2ipi808gy7wma5rgayxm9";
type = "git";
url = "https://github.com/rails/rails.git";
};
version = "7.2.0.alpha";
};
This leads to collision issues, are you familiar with how to work around this?
I haven't used gemset.nix
in a long time and am not actively working on any Rails projects anymore. Sorry :sweat_smile:
I followed the development shell instructions to a tee and I keep hitting the same error:
error: getting status of '/nix/store/7am6vdkb1r04dl7plp338kn7084j2p59-source/gemset.nix': No such file or directory
I can get around this by using the absolute path to
gemset.nix
in theflake.nix
and the runningnix develop --impure
Then I am hit with this.
I feel like the last error is unrelated to this repo but having to use an absolute path for my
gemset.nix
is? Any suggestions how I can resolve this?