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

Add a info command #40

Closed
ruben-arts opened this issue May 31, 2023 · 5 comments · Fixed by #158
Closed

Add a info command #40

ruben-arts opened this issue May 31, 2023 · 5 comments · Fixed by #158
Assignees
Labels
enhancement New feature or request

Comments

@ruben-arts
Copy link
Contributor

ruben-arts commented May 31, 2023

As a user I would like to get the info that is being read from my system by the tool to easily debug issues. This is also helpful for future issue resolving where users could print out so it gets easier to investigate.

conda info is a good example:

     active environment : None
            shell level : 0
       user config file : /home/rarts/.condarc
 populated config files : /usr/share/conda/condarc.d/defaults.yaml
          conda version : 4.13.0
    conda-build version : not installed
         python version : 3.11.3.final.0
       virtual packages : __cuda=12.1=0
                          __linux=6.2.15=0
                          __glibc=2.36=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /usr  (read only)
      conda av data dir : /usr/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /var/cache/conda/pkgs
                          /home/rarts/.conda/pkgs
       envs directories : /home/rarts/.conda/envs
                          /usr/envs
               platform : linux-64
             user-agent : conda/4.13.0 requests/2.28.1 CPython/3.11.3 Linux/6.2.15-200.fc37.x86_64 fedora/37 glibc/2.36
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

We could possibly extend this with project information

@baszalmstra
Copy link
Contributor

Maybe something along the lines of: https://doc.rust-lang.org/cargo/commands/cargo-metadata.html

That would also make it machine readable. And usable by other tools.

What would you include in this info?

@ruben-arts
Copy link
Contributor Author

As of right now I only needed it for finding out where the cache was stored and which virtual packages are available.

A machine readable version could be handy!

The cargo metadata is only specific to the package which can be a nice addition but I'm more interested in the system config.

@baszalmstra
Copy link
Contributor

We could do something similar to docker info where you can specify --format and format it to your. There is a crate for that: https://github.com/fiji-flo/gtmpl-rust

@baszalmstra baszalmstra added the enhancement New feature or request label Jun 2, 2023
@baszalmstra
Copy link
Contributor

Related to #74

@wolfv wolfv self-assigned this Jun 30, 2023
@ruben-arts ruben-arts linked a pull request Jul 10, 2023 that will close this issue
@wolfv
Copy link
Member

wolfv commented Jul 10, 2023

Ideas for additional info elements:

  • global
    • authentication store location (if fallback used)
    • global cache size?
    • last time repodata downloaded?
    • proxy settings (HTTP_PROXY / HTTPS_PROXY)
    • netrc files (if they are used by reqwest)
  • project
    • number of packages installed
    • disk space used / size of .pixi folder
    • last time updated / locked
    • platforms that were locked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants