flox icon indicating copy to clipboard operation
flox copied to clipboard

What is "floxmeta" and why is it missing?

Open aronchick opened this issue 1 year ago • 5 comments

When i run the following command from a script...

## Running: /usr/local/bin/flox activate -r "aronchick/andaime" -t -- golangci-lint run --fix .flox/env/manifest.toml

❌ ERROR: Failed to get latest version of remote environment: Failed to clone environment: Git failed with: [exit code 128]
  stdout:
  stderr: fatal: remote error: FATAL: invalid repo name: '"aronchick/floxmeta'

When i run it from my full shell, it's fine.

aronchick avatar Aug 29 '24 16:08 aronchick

What's your flox version?

mkenigs avatar Aug 29 '24 16:08 mkenigs

If you have something lower than 1.3.0, this may be https://github.com/flox/flox/issues/1820

mkenigs avatar Aug 29 '24 17:08 mkenigs

No i have 1.3.0. It turns out it was because i hadn't pushed the repo to flox cloud.

aronchick avatar Aug 31 '24 03:08 aronchick

There's a " in the error that shouldnt be there ("aronchick/floxmeta) There is an implementation for better error messages in the case that the env does not exist on the hub, this however is a bug. Thanks for reporting!

ysndr avatar Sep 02 '24 15:09 ysndr

can you still reproduce this, and which shell are you using?

As far as i can tell aronchick/floxmeta is derived from the your -r argument, by splitting the string at /. None of the downstream code is adding quoting to it afaict. to produce "aronchick the shell must have passed the quoting into argv, which is surprising at least.

ysndr avatar Sep 03 '24 12:09 ysndr

I can only reproduce this by explicitly passing in a ", i.e. flox activate -r '"owner/name'

mkenigs avatar Dec 16 '24 22:12 mkenigs