Environment activation

Something does not seem to work for me:

~/projects/rust/edits on main
± flox environments
etorreborre/default
    Alias     default
    System    x86_64-darwin
    Path      /Users/etorreborre/.local/share/flox/environments/etorreborre/default
    Curr Gen  30 (remote 4)
    Commit    40c5130 (remote 277089a)

etorreborre/rust
    Alias     rust
    System    x86_64-darwin
    Path      /Users/etorreborre/.local/share/flox/environments/etorreborre/rust
    Curr Gen  1

[flox]
~/projects/rust/edits on main
± flox activate -e rust
[flox]
~/projects/rust/edits on main
± flox list
etorreborre/default
    Alias     default
    System    x86_64-darwin
    Path      /Users/etorreborre/.local/share/flox/environments/etorreborre/default
    Curr Gen  30

Packages
    0 unstable.nixpkgs-flox.cargo-tarpaulin.0_22_0
    1 unstable.nixpkgs-flox.cargo-tarpaulin.0_22_0

I was expecting flox list to show the rust environment at Gen. 1. This is with 0.0.6-rc45.

We’ve received this feedback from others as well. The flox “environment” subcommands don’t [yet] respect the context of the “active” environment, so will always report the “default” environment if another hasn’t been specified.

Bottom line - flox list -e rust shows you the contents of the “rust” environment, and flox list shows you the contents of the “default” environment regardless which other environments have been activated. We’re working to change that to be context-sensitive, perhaps even prompting the user to select which of the currently-activated environments they want to list.

Thanks again for all the great feedback!

Just wanted to confirm this is on our list of things to do and is being prioritised. It’s going to take some time but we will be sure to let you know once it has been done. :slight_smile: