mamba-org / setup-micromamba

GitHub Action to set up micromamba
MIT License
97 stars 15 forks source link

Error removing `micromamba-shell` in cleanup step #130

Open jonashaag opened 1 year ago

jonashaag commented 1 year ago

https://github.com/mamba-org/mamba/actions/runs/5881601796/job/15950428165

Removing micromamba run shell ...
Deinitialize micromamba for bash
  node:internal/process/promises:279
              triggerUncaughtException(err, true /* fromPromise */);
              ^

  [Error: ENOENT: no such file or directory, stat '/usr/local/bin/micromamba-shell'] {
    errno: -2,
    code: 'ENOENT',
    syscall: 'stat',
    path: '/usr/local/bin/micromamba-shell'
  }
almostintuitive commented 1 year ago

We're also bumping into this, on a self-hosted runner, even with caching set to false. do you have any advice? (on linux)

robertodr commented 12 months ago

We're also hitting this on a self-hosted runner (macOS ARM64). Caching is also not enabled. Since the clean-up fails, any subsequent job fails at the startup since the ~/micromamba folder is already present.

pavelzw commented 12 months ago

An easy fix should be to use generate-run-shell: false. I'll try to take a look at the underlying issue.

robertodr commented 12 months ago

@pavelzw that does the trick for me! Thank you!