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

Cannot install additional dependencies when using micromamba lock installation #1760

Closed
pavelzw opened this issue Jun 23, 2022 · 2 comments
Closed
Labels
type::feature-request New feature proposal

Comments

@pavelzw
Copy link
Member

pavelzw commented Jun 23, 2022

When creating an environment with micromamba and specifying a lock file with additional packages to install, micromamba only takes care of the lock file but not the additional packages.

Example:
lockfile.lock

@EXPLICIT
https://conda.anaconda.org/conda-forge/linux-64/numpy-1.21.6-py37h976b520_0.tar.bz2#b0701d8dc4849b6e06caf1c84135c13c
❯ micromamba create -n testenv -y -f lockfile.lock pytest

                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/

Transaction

  Prefix: /Users/pavelzwerschke/micromamba/envs/testenv

  Updating specs:

   - conda-forge/linux-64::numpy==1.21.6=py37h976b520_0[md5=b0701d8dc4849b6e06caf1c84135c13c]


  Package  Version  Build           Channel           Size
────────────────────────────────────────────────────────────
  Install:
────────────────────────────────────────────────────────────

  + numpy   1.21.6  py37h976b520_0  conda-forge     Cached

  Summary:

  Install: 1 packages

  Total download: 0 B

────────────────────────────────────────────────────────────


Transaction starting
Linking numpy-1.21.6-py37h976b520_0
Transaction finished
@jonashaag jonashaag added the type::feature-request New feature proposal label Sep 30, 2022
@jonashaag
Copy link
Collaborator

@pavelzw I've looked into the code for this and it seems doable to implement this feature.

However I wonder if it's at all sound because the order of installing dependencies matters (must be topological; this is given in the @EXPLICIT file). Adding a new dependency to explicit file specs generally requires that the combined set of dependencies be re-ordered (hence, re-solved).

@pavelzw
Copy link
Member Author

pavelzw commented Apr 9, 2024

let's not move forward with this, lockfiles are locked for a reason 😄

@pavelzw pavelzw closed this as not planned Won't fix, can't repro, duplicate, stale Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature-request New feature proposal
Projects
None yet
Development

No branches or pull requests

2 participants