Skip to content

Commit 70dca3d

Browse files
authored
chore: expose install.sh on the main domain (#6280)
1 parent a9caef0 commit 70dca3d

File tree

6 files changed

+14
-7
lines changed

6 files changed

+14
-7
lines changed

.github/workflows/post-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ jobs:
7474
os: [ubuntu-latest, macos-latest, windows-latest]
7575
runs-on: ${{ matrix.os }}
7676
steps:
77-
- run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b "./install-golangci-lint"
77+
- run: curl -sSfL https://golangci-lint.run/install.sh | sh -s -- -b "./install-golangci-lint"

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ docs_clean:
109109
@make -C ./docs clean
110110
.PHONY: docs_clean
111111

112-
docs_build: website_copy_jsonschema website_expand_templates
112+
docs_build: website_copy_install_sh website_copy_jsonschema website_expand_templates
113113
@make -C ./docs build
114114
.PHONY: docs_build
115115

@@ -120,6 +120,10 @@ website_copy_jsonschema:
120120
go run ./scripts/website/copy_jsonschema/
121121
.PHONY: website_copy_jsonschema
122122

123+
website_copy_install_sh:
124+
cp install.sh ./docs/static/
125+
.PHONY: website_copy_install_sh
126+
123127
website_expand_templates:
124128
go run ./scripts/website/expand_templates/
125129
.PHONY: website_expand_templates

docs/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
public/
44
resources/
55

6+
# Copy of install.sh
7+
/static/install.sh
8+
69
### Generated files
710

811
# Generated by /scripts/copy_jsonschema

docs/content/docs/welcome/install/local.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ weight: 2
77

88
```bash
99
# binary will be $(go env GOPATH)/bin/golangci-lint
10-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin {{< golangci/latest-version >}}
10+
curl -sSfL https://golangci-lint.run/install.sh | sh -s -- -b $(go env GOPATH)/bin {{< golangci/latest-version >}}
1111

1212
# or install it into ./bin/
13-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s {{< golangci/latest-version >}}
13+
curl -sSfL https://golangci-lint.run/install.sh | sh -s {{< golangci/latest-version >}}
1414

1515
# In Alpine Linux (as it does not come with curl by default)
16-
wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s {{< golangci/latest-version >}}
16+
wget -O- -nv https://golangci-lint.run/install.sh | sh -s {{< golangci/latest-version >}}
1717

1818
golangci-lint --version
1919
```

scripts/bench/bench_local.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ trap cleanBinaries EXIT
3333

3434
## Download version
3535

36-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b "./temp-${VERSION}" "${VERSION}"
36+
curl -sSfL https://golangci-lint.run/install.sh | sh -s -- -b "./temp-${VERSION}" "${VERSION}"
3737

3838
mv "temp-${VERSION}/golangci-lint" "./golangci-lint-${VERSION}"
3939
rm -rf "temp-${VERSION}"

scripts/bench/bench_version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ trap cleanBinaries EXIT
3737
function install() {
3838
local VERSION=$1
3939

40-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b "./temp-${VERSION}" "${VERSION}"
40+
curl -sSfL https://golangci-lint.run/install.sh | sh -s -- -b "./temp-${VERSION}" "${VERSION}"
4141

4242
mv "temp-${VERSION}/golangci-lint" "./golangci-lint-${VERSION}"
4343
rm -rf "temp-${VERSION}"

0 commit comments

Comments
 (0)