buffrs icon indicating copy to clipboard operation
buffrs copied to clipboard

Using `buffrs add` with --registry option on old format Proto.toml raises an error

Open alexespencer opened this issue 1 year ago • 1 comments

To recreate: Remove the registry = line from Proto.toml.

Run something like: buffrs add --registry https://helsing.jfrog.io/artifactory inf-proto-playground/units@=0.0.1

Error:

Error:
   0: Failed to parse manifest
   1: TOML parse error at line 1, column 1
   1:   |
   1: 1 | [dependencies.units]
   1:   | ^^^^^^^^^^^^^^^^^^^^
   1: missing field `registry`
   1:

Work around fix: Remove the package manually from Proto.toml then try again with buffrs add

alexespencer avatar Sep 20 '23 10:09 alexespencer

Or, delete Proto.toml and do buffrs init then buffrs add.

In fact, running buffrs add BEFORE buffrs init doesn't return a nice error - I'll raise another issue

alexespencer avatar Sep 20 '23 10:09 alexespencer