https://github.com/bzlparty/tool-versions-generator
https://github.com/bzlparty/tool-versions-generator
bazel bazel-rules starlark
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bzlparty/tool-versions-generator
- Owner: bzlparty
- License: gpl-3.0
- Created: 2023-05-26T22:59:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-23T09:38:24.000Z (over 2 years ago)
- Last Synced: 2025-01-22T23:41:21.237Z (9 months ago)
- Topics: bazel, bazel-rules, starlark
- Language: Go
- Size: 29.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `TOOL_VERSIONS` generator
This tool generates a `TOOL_VERSIONS` dict (in Starlark) to be used in a [`versions.bzl`](https://github.com/bazel-contrib/rules-template/blob/main/mylang/private/versions.bzl) file from release assets of a github repository.
Download binaries from the [release page](https://github.com/bzlparty/tool-versions-generator/releases).
Build from source:
```bash
go build github.com/bzlparty/tool-versions-generator/cmd/tvg
```For [`oak`](https://github.com/thesephist/oak):
```bash
./tvg --repo thesephist/oak --platform linux,darwin
```Output:
```starlark
# This file was generated from https://github.com/thesephist/oak/releases
TOOL_VERSIONS = {
"0.1": {
"darwin": "sha384-IFGYZUufyvXU3EZvNteFaBBbQlAw1ZPJvDCCUViHiApuLDkyANXZvKJsWy8FM1Cb",
"linux": "sha384-SJmbqfFWdU7m4xS0Xq2kfjGEfq+41cCmvOfDgOpq4j9wLvlZYwQlhBCceBTjrCpX",
},
"0.2": {
"darwin": "sha384-ifyKA6CsaHTkRfwQyjlTKPC6nmEETshBVYwXEme8olnzvmWUDePod1S/JjaXbxjz",
"linux": "sha384-7mX7LWx1clH1MUtSoLQIk5ncc2hAhixt3UIGSJyTGI9g0P7XDiy1E855SrikQTw0",
},
"0.3": {
"darwin": "sha384-wT8x5iglKnGm5+nryH2SbfFGQh5yq7X5qjtkMXYmVtVAhTvPY09ptklW9tZqoa+f",
"linux": "sha384-jUe08kY/F7TQKBGzsGLNXTNAsGKq3zD0Glo7K7HuHzfU9cA6PjK8aOSl8TVqlToc",
},
}
```