Skip to content
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

feat: add environments to the info command output #676

Merged
merged 4 commits into from
Jan 18, 2024

Conversation

ruben-arts
Copy link
Contributor

@ruben-arts ruben-arts commented Jan 17, 2024

This now also lists the enviroments defined in the environment:

      Pixi version: 0.12.0
          Platform: linux-64
  Virtual packages: __unix=0=0
                  : __linux=6.5.12=0
                  : __glibc=2.36=0
                  : __cuda=12.3=0
                  : __archspec=1=x86_64
         Cache dir: /home/rarts/.cache/rattler/cache
      Auth storage: /home/rarts/.rattler/credentials.json

Project
------------
           Version: 0.12.0
     Manifest file: /home/rarts/development/pixi/pixi.toml
      Last updated: 16-01-2024 11:12:41

Environments
------------
default
          Features: default
          Channels: conda-forge
  Dependency count: 10
      Dependencies: pre-commit, rust, openssl, pkg-config, git, mkdocs, mkdocs-material, pillow, cairosvg, compilers
  Target platforms: linux-64, osx-64, osx-arm64, win-64
             Tasks: build, test-all, build-docs, docs, install, lint, test

foobar
          Features: foo, bar, default
          Channels: conda-forge
  Dependency count: 12
      Dependencies: foo, bar, pre-commit, rust, openssl, pkg-config, git, mkdocs, mkdocs-material, pillow, cairosvg, compilers
  Target platforms: linux-64, osx-64, osx-arm64, win-64
             Tasks: lint, test-all, docs, test, build, install, build-docs

I made this in an attempt to help the users and us to debug the coming multi environment feature.

I feel that the setup of the code could use some more love as this didn't feel logical or comfortable. But it gets the job done for now. Maybe later we can implement some beter serialization of the environments to help improve this output.

@ruben-arts ruben-arts merged commit 2261787 into prefix-dev:main Jan 18, 2024
9 checks passed
@baszalmstra baszalmstra added this to the Multi-env milestone Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

2 participants