You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f69eef9
Browse filesBrowse the repository at this point in the historyBrowse files
Support OpenCode 1.x and 2.x on version branches (#52)
* Support OpenCode 1.x and 2.x on version branches
Move from the single `latest` branch to major-version branches `1` and `2`,
published to the `1` and `2` Store tracks. Track `1` is also promoted to
`latest/stable`, so existing consumers keep getting OpenCode 1.x.
- Download OpenCode 2.x from the `@opencode/cli-linux-*` npm packages,
verified against the registry's sha512 integrity; 2.x is not published
as GitHub release assets. 1.x keeps the GitHub release download.
- Stage the version in the SDK so hooks can apply major-specific setup.
- OpenCode 2.x no longer reads /etc/opencode, so export OPENCODE_CONFIG
pointing at the SDK config. The workshop prompt is still not applied on
2.x because of anomalyco/opencode#51341; it takes effect once a fixed
release is picked up.
- Renovate: one regex manager per major (github-releases for 1.x, npm
@opencode/cli for 2.x), each pinned to its branch.
- Workflows: build/upload on `[0-9]+` branches, track from the branch name.
- Spread: add a 2.x config test, skipped on 1.x.
* opencode: verify each major in its native hash format
Drop the base64->hex conversion for npm's sha512 SRI. 1.x keeps GitHub's
sha256 (hex, via sha256sum -c); 2.x compares npm's sha512 SRI directly
(openssl dgst -sha512 -binary | base64). Removes the ACTUAL_CMD indirection,
format guards, and temp-file handling; adds openssl to build-packages.
* Apply batched suggestions from code review
Co-authored-by: Jonathan Conder <[email protected]>
Signed-off-by: Dmitry Lyfar <[email protected]>
---------
Signed-off-by: Dmitry Lyfar <[email protected]>
Co-authored-by: Jonathan Conder <[email protected]>
0 commit comments