You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dependencies in the Scarb toml manifest can be defined either as version requirement (dep = "1.2.3") or a detailed dependency (dep = { version = "1.2.3", registry = "https://some.registry" }).
This alternatives has been defined in
A detailed dependency of package from registry can define an optional url of the registry that should be used.
In case a dependency is specified as a version requirement (without registry url), a default registry is assumed. The default registry is https://scarbs.xyz/.
Consider adding an option to override default registry.
This could potentially serve to purposes:
Use different than official registry for testing purposes
Use a registry that you own and trust to access a limited / audited set of packages only (should it allow specifying different registry url in deps?)
Solving this task should include researching how changing registry to serve dependencies is solved in other package managers.
Problem
Dependencies in the Scarb toml manifest can be defined either as version requirement (
dep = "1.2.3"
) or a detailed dependency (dep = { version = "1.2.3", registry = "https://some.registry" }
).This alternatives has been defined in
scarb/scarb/src/core/manifest/toml_manifest.rs
Lines 258 to 279 in 152926a
A detailed dependency of package from registry can define an optional url of the registry that should be used.
In case a dependency is specified as a version requirement (without registry url), a default registry is assumed. The default registry is https://scarbs.xyz/.
Consider adding an option to override default registry.
This could potentially serve to purposes:
Solving this task should include researching how changing registry to serve dependencies is solved in other package managers.
Also see: #1434
Proposed Solution
No response
Notes
No response
The text was updated successfully, but these errors were encountered: