Skip to content

feat: add version pinning support to install.sh#123

Merged
Mossaka merged 4 commits intomainfrom
copilot/add-version-parameter-install-script
Dec 19, 2025
Merged

feat: add version pinning support to install.sh#123
Mossaka merged 4 commits intomainfrom
copilot/add-version-parameter-install-script

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 19, 2025

The install script only supported installing the latest version. Users need to pin specific versions for reproducibility and rollback scenarios.

Changes

  • Version selection priority: argument > AWF_VERSION env var > fetch latest
  • Version validation: strict semver format vX.Y.Z with anchored regex
  • Updated docs: script header and README with usage examples

Usage

# Install specific version via argument
curl -sSL .../install.sh | sudo bash -s -- v1.0.0

# Or via environment variable
curl -sSL .../install.sh | sudo AWF_VERSION=v1.0.0 bash

# Default: latest (unchanged behavior)
curl -sSL .../install.sh | sudo bash
Original prompt

install.sh should be able to pass in a version to pin the version (default uses the latest


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits December 19, 2025 08:47
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Copilot AI changed the title [WIP] Add version parameter to install.sh script feat: add version pinning support to install.sh Dec 19, 2025
Copilot AI requested a review from Mossaka December 19, 2025 08:51
@Mossaka Mossaka added the smoke label Dec 19, 2025
@Mossaka Mossaka marked this pull request as ready for review December 19, 2025 17:52
@github-actions
Copy link
Copy Markdown
Contributor

Test Coverage Report

Metric Coverage Covered/Total
Lines 66.1% 708/1071
Statements 66.27% 729/1100
Functions 70.73% 87/123
Branches 60.89% 232/381
Coverage Thresholds

The project has the following coverage thresholds configured:

  • Lines: 38%
  • Statements: 38%
  • Functions: 35%
  • Branches: 30%

Coverage report generated by `npm run test:coverage`

@Mossaka Mossaka merged commit 75e9e67 into main Dec 19, 2025
10 checks passed
@Mossaka Mossaka deleted the copilot/add-version-parameter-install-script branch December 19, 2025 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants