Commit ab4d5fe
authored
Add assetRegex option
At some point in the recent past, I started getting installation errors when using this Feature:
```
nanolayer.installers.gh_release.resolvers.asset_resolver.AssetResolver.AssetResolverError: Too many matches found
```
The shellcheck v0.11.0 release added some assets a few weeks ago, which _could_ be the trigger that caused the above error:
https://github.com/koalaman/shellcheck/releases/tag/v0.11.0
I've added a pretty basic regex filter on the asset name that should limits the matches to gzipped tar files. If there's a more appropriate regex to use, please let me know.
I successfully tested this pattern locally by using the gh-release feature with the following configuration:
```json
"ghcr.io/devcontainers-extra/features/gh-release:1": {
"repo": "koalaman/shellcheck",
"binaryNames": "shellcheck",
"assetRegex": "shellcheck-.*.tar.gz$"
},
```
Signed-off-by: Jason Garber <[email protected]>1 parent 417e799 commit ab4d5fe
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
0 commit comments