Coder Social home page Coder Social logo

Comments (4)

vigneshmanick avatar vigneshmanick commented on June 4, 2024 1

Your proposal makes sense. I am closing this issue and will followup on the linked ones. Thanks again for the prompt and detailed response.

from pixi.

ruben-arts avatar ruben-arts commented on June 4, 2024

He @vigneshmanick, this is expected behavior. pixi will only install the required environments. pixi install will install the default environment. But you can specify the required installation with pixi install -e lint.

Most of our other cli tools that interact with the environment also install the required environment. Take for instance pixi run, this will install the required environment for you if requested. pixi run lint will install the lint environment for you.

The pixi install command is there mostly to have a command to call when you really just want to do an installation and nothing else, run shell shell-hook add remove etc will all install the environment you are interacting with when it's required. This is to make sure that your environment will always be in the correct state.

from pixi.

vigneshmanick avatar vigneshmanick commented on June 4, 2024

Thanks for the info. This was not clear to me, now running pixi run lint does what you mentioned and the lint env is now there. I have a further point regarding this. When running pixi run lint for the first time i got the following error

pixi run lint
✨ Pixi task (lint-code in lint): ruff check --fix . && ruff format .
  × The current system has a mismatching virtual package. The project requires '__linux' to be at least version '5.10' but the system has version
  │ '3.10.0'

I guess the no-default-feature ignores everything from the default ? would be good if there is a fine grained filter avaialble, platforms, system-requirements , etc. so that i don't have to redefine the fields.

maybe

[no-default-feature]
include = [ "platforms", "system-requirements" ]

from pixi.

ruben-arts avatar ruben-arts commented on June 4, 2024

The current logic only takes over what is defined in the project table. Specifically channels and platforms. But your point of makes sense. Checkout #1092 to see the full discussion, because there was a pretty big one including your proposal.

The system requirements could be revisited. But for now the fix would be is to redefine them. I posted a different idea for system requirements in general in this Issue.

from pixi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.