diff options
| author | William Boman <william@redwill.se> | 2023-07-21 18:13:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-21 18:13:49 +0200 |
| commit | 05795741895ee16062eabeb0d89bff7cbcd693fa (patch) | |
| tree | f3f0fc541b7a97197f8371801c9ec4df1dd6723a /lua | |
| parent | chore(main): release 1.6.0 (#1392) (diff) | |
| download | mason-05795741895ee16062eabeb0d89bff7cbcd693fa.tar mason-05795741895ee16062eabeb0d89bff7cbcd693fa.tar.gz mason-05795741895ee16062eabeb0d89bff7cbcd693fa.tar.bz2 mason-05795741895ee16062eabeb0d89bff7cbcd693fa.tar.lz mason-05795741895ee16062eabeb0d89bff7cbcd693fa.tar.xz mason-05795741895ee16062eabeb0d89bff7cbcd693fa.tar.zst mason-05795741895ee16062eabeb0d89bff7cbcd693fa.zip | |
fix(installer): retain unmapped source fields (#1399)
Fixes #1398.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/mason-core/installer/registry/init.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lua/mason-core/installer/registry/init.lua b/lua/mason-core/installer/registry/init.lua index 6b03296f..9373f8d0 100644 --- a/lua/mason-core/installer/registry/init.lua +++ b/lua/mason-core/installer/registry/init.lua @@ -132,7 +132,7 @@ function M.parse(spec, opts) log.trace("Parsed source for purl.", source.id, parsed_source) return { provider = provider, - source = parsed_source, + source = vim.tbl_extend("keep", parsed_source, source), raw_source = source, purl = purl, } @@ -204,7 +204,6 @@ function M.compile(spec, opts) ctx.receipt:with_primary_source { type = ctx.package.spec.schema, id = Purl.compile(parsed.purl), - source = parsed.source, } end):on_failure(function(err) error(err, 0) |
