Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Error 404 when using the . syntax of toml. #226

Open
DragonDev1906 opened this issue Mar 5, 2024 · 1 comment · Fixed by BarbossHack/crates-io#1
Open

Error 404 when using the . syntax of toml. #226

DragonDev1906 opened this issue Mar 5, 2024 · 1 comment · Fixed by BarbossHack/crates-io#1

Comments

@DragonDev1906
Copy link

Describe the bug
When dependencies are specified using the "." format (see below, which is valid toml and recognized by cargo), an error Error:statusCode=404 is shown instead of whether the dependency is up-to-date.

[dependencies]
smoldot.version = "0.17.0"

To Reproduce
Steps to reproduce the behavior:

  1. Create a cargo project
  2. Add any dependency in this format instead of just smoldot = "0.17.0" (one way to add additional fields in a separate line)

Expected behavior
The up-to-date info (checkbox) to show behind this line instead of an error.

Screenshots
2024-03-05-104551_358x48_scrot

Additional Context
I am aware that dependencies can be specified on multiple lines with the following syntax (which has other benefits over the "." format):

[dependencies.smoldot]
version = "0.17.0"
@SimSmith
Copy link

SimSmith commented Mar 15, 2024

In this case, I guess you could just skip .version and it would be the same. However, this issue applies to things like .path too.
I.e. this gives red !!!:

[workspace.dependencies]
my_package.path = "my_package"

and this is gives no red marks:

[workspace.dependencies]
my_package = { path = "my_package" }

but both are valid.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants