a8m / a8m/envsubst

Update download URL to always use "latest" release

Open Beginner friendly
#65 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
907
Forks
96
PR merge metrics
No merged PRs in 30d

Description

Minor adjustment to README.md; removes the need to update the URL whenever a new release is made.

Currently the instructions read:
```sh
curl -L https://github.com/a8m/envsubst/releases/download/v1.2.0/envsubst-`uname -s`-`uname -m` -o envsubst
chmod +x envsubst
sudo mv envsubst /usr/local/bin
```
which hard-codes the release version number in the URL - currently the "latest" release is 1.4.2, not 1.2.0.

Github has a "latest release" URL feature, so the URL can be rewritten as:
```sh
curl -sL https://github.com/a8m/envsubst/releases/latest/download/envsubst-`uname -s`-`uname -m` -o envsubst
chmod +x envsubst
sudo mv envsubst /usr/local/bin
```
(BTW the curl `-sL` rather than just `-L` will also disable the progress bar; download is so quick progress bar isn't useful/needed.)

Contributor guide

No contributing guide indexed for this repository

Research direction

The change is in README.md; locate the curl command lines shown in the issue. Replace the version-specific URL with the 'latest' release URL as described, and also update the curl flags to include -s. Verify by checking the README formatting and ensuring the new command works by testing it in a shell.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
90/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.