Hi András,

> I have done something like this:
> 1. I have zig@0.10 installed in my profile.
> 2. Started a guix shell -m guix.scm which has zig@0.9
> 3. Run zig version and it reported 0.10.0

What does your ~/.bashrc look like?
What does “guix shell --check” say?

> However when I run `which zig` it finds `zig` in /gnu/store.

This indicates that GUIX_PROFILE was not set when the environment
variables in etc/profile were set.  When GUIX_PROFILE is set the
environment variables are set relative to the location it specifies;
when it is not set the /gnu/store locations will be used, which is
rarely what you want.

-- 
Ricardo

Reply via email to