diff options
| author | William Boman <william@redwill.se> | 2023-04-12 19:32:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-12 19:32:43 +0200 |
| commit | df4bf38688c31056d222e68aa9f26e3c51090a97 (patch) | |
| tree | f55891f022556599a43044ce1de28e6814082611 /lua/mason-core/installer/managers/std.lua | |
| parent | chore: autogenerate (#1206) (diff) | |
| download | mason-df4bf38688c31056d222e68aa9f26e3c51090a97.tar mason-df4bf38688c31056d222e68aa9f26e3c51090a97.tar.gz mason-df4bf38688c31056d222e68aa9f26e3c51090a97.tar.bz2 mason-df4bf38688c31056d222e68aa9f26e3c51090a97.tar.lz mason-df4bf38688c31056d222e68aa9f26e3c51090a97.tar.xz mason-df4bf38688c31056d222e68aa9f26e3c51090a97.tar.zst mason-df4bf38688c31056d222e68aa9f26e3c51090a97.zip | |
fix(github): use evaluated out_file as asset file value (#1208)
This makes it so that after parsing the source, the `{{source.asset.file}}` context value points to the downloaded file,
rather than the raw value. This is helpful for source definitions such as:
```yaml
source:
id: pkg:github/mrjosh/helm-ls@v0.0.3
asset:
- target: win_x64
file: helm_ls_windows_amd64:helm_ls_windows_amd64.exe
# …
bin:
# This now evaluates to "helm_ls_windows_amd64.exe" rather than "helm_ls_windows_amd64:helm_ls_windows_amd64.exe".
helm_ls: "{{source.asset.file}}"
```
Diffstat (limited to 'lua/mason-core/installer/managers/std.lua')
0 files changed, 0 insertions, 0 deletions
