Created
July 8, 2026 16:30
-
-
Save mkatychev/5602e33735a2db3310870938654af9a4 to your computer and use it in GitHub Desktop.
Nickel wkg merge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~/.config/wasm-pkg/config.toml | |
| default_registry = "foo.ghcr.io" | |
| [namespace_registries.my-namespace] | |
| registry = "foo.ghcr.io" | |
| [namespace_registries.my-namespace.metadata.oci] | |
| registry = "foo.ghcr.io" | |
| namespacePrefix = "foo-oci-local/" | |
| [package_registry_overrides] | |
| [registry."foo.ghcr.io".oci] | |
| auth = { username = "", password = "" } | |
| [registry.local-dev.local] | |
| root = "~/work/foo_project" | |
Author
Author
From ~/work/foo_project/
$ nickel export .wasm-pkg/config.toml ~/.config/wasm-pkg/config.toml --format toml
error: non mergeable terms
┌─ ~/work/foo_project/.wasm-pkg/config.toml:15:8
│
15 │ root = "/tmp/wkg-store"
│ ^^^^^^^^^^^^^^^^ cannot merge this expression
│
┌─ ~/.config/wasm-pkg/config.toml:16:8
│
16 │ root = "~/work/foo_project"
│ ^^^^^^^^^^^^^^^^^^^^ with this expression
│
┌─ <generated main>:1:1
│
1 │ ╭ (import ".wasm-pkg/config.toml")
2 │ │ & (import "~/.config/wasm-pkg/config.toml")
│ ╰──────────────────────────────────────────────────────────' originally merged here
│
= Merge operands have the same merge priority but they can't be combined.
= Both values are of type String but they aren't equal.
= String values can only be merged if they are equal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Project level
config.toml: