Replies: 3 comments 16 replies
-
I'm aware of 3 places where I think I'd like to put different kinds of config:
I think it's important to distinguish case 3, where the developer wants to directly interact with a WIT CLI (as their top-level build tool), from case 2 where we want to factor out common logic from all the different top-level build tools. I think what this suggests is that the latter takes care of consulting the case 1 global config, factoring out the logic of looking in home directories or env vars or whatever the best practice is these days, but provides command-line options for overriding these defaults, allowing the various top-level build commands to supply these overrides when present in their various build-config files (from case 2). |
Beta Was this translation helpful? Give feedback.
-
re: global registry config, see for reference this example of wasm-pkg-loader's (née warg-loader) current config format: default_registry = "example.com"
[namespace.wasi]
registry = "wasi.dev"
[registry."example.com"]
type = "oci"
auth = { username = "open", password = "sesame" }
[registry."wasi.dev"]
type = "oci"
auth = "cGluZzpwb25n" |
Beta Was this translation helpful? Give feedback.
-
Should we consider adding If the package can be deleted and re-uploaded, it is unsafe to index by name and version number. Hash256 is the real way to distinguish packages. In the case where the name is the same but different from the hash stored in the lock, a red warning should be displayed. Some dangerous situations have occurred and a malicious attack may have occurred. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As we're thinking about specific configuration files (ref #2), I'd like to step back and consider all of the possible kinds of config we might need in the medium-term so that we can design a cohesive config story. Let's try to be comprehensive here: some of these things might not end up going in any config file defined in this repo but could still be useful in understanding the big picture.
Seeding the list:
cargo-component
's[package.metadata.component.dependencies]
RegistryMetadata
Beta Was this translation helpful? Give feedback.
All reactions