Skip to content

Running task in an environment without the default feature crashes #5380

@sdvillal

Description

@sdvillal

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

Commands I ran and their output:

# these work and print "hi"
pixi run test
pixi run -e test test

# this crashes
pixi run -e test-no-default test

pixi.toml file that reproduces my issue:

[workspace]
channels = ["conda-forge"]
name = "pixi-default-thing"
platforms = ["osx-arm64"]
version = "0.1.0"

[environments]
test = ["a-feature"]
test-no-default = { features = ["a-feature"], no-default-feature = true }

[tasks]
test.cmd = "echo Hi"

[feature.a-feature.dependencies]

pixi info output:

System
------------
       Pixi version: 0.63.2
        TLS backend: rustls
           Platform: osx-arm64
   Virtual packages: __unix=0=0
                   : __osx=26.2=0
                   : __archspec=1=m1
          Cache dir: /Users/santi/Library/Caches/rattler/cache
       Auth storage: /Users/santi/.rattler/credentials.json
   Config locations: /Users/santi/.pixi/config.toml

Global
------------
            Bin dir: /Users/santi/.pixi/bin
    Environment dir: /Users/santi/.pixi/envs
       Manifest dir: /Users/santi/.pixi/manifests/pixi-global.toml

Workspace
------------
               Name: pixi-default-thing
            Version: 0.1.0
      Manifest file: /Users/santi/pixi-default-thing/pixi.toml
       Last updated: 21-01-2026 06:00:13

Environments
------------
        Environment: default
           Features: a-feature, default
           Channels: conda-forge
   Dependency count: 1
       Dependencies: python
   Target platforms: osx-arm64
    Prefix location: /Users/santi/pixi-default-thing/.pixi/envs/default
              Tasks: test

        Environment: test
           Features: a-feature, default
           Channels: conda-forge
   Dependency count: 1
       Dependencies: python
   Target platforms: osx-arm64
    Prefix location: /Users/santi/pixi-default-thing/.pixi/envs/test
              Tasks: test

        Environment: test-no-default
           Features: a-feature
           Channels: conda-forge
   Dependency count: 1
       Dependencies: python
   Target platforms: osx-arm64
    Prefix location: /Users/santi/pixi-default-thing/.pixi/envs/test-no-default

As seen in aqlaboratory/openfold-3#34

Issue description

SSIA

Happens in osx and linux, across pixi versions

Expected behavior

Task runs also in environments without default

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions