File tree Expand file tree Collapse file tree 6 files changed +14
-7
lines changed
content/docs/welcome/install Expand file tree Collapse file tree 6 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff 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+
123127website_expand_templates :
124128 go run ./scripts/website/expand_templates/
125129.PHONY : website_expand_templates
Original file line number Diff line number Diff line change 33public /
44resources /
55
6+ # Copy of install.sh
7+ /static /install.sh
8+
69# ## Generated files
710
811# Generated by /scripts/copy_jsonschema
Original file line number Diff line number Diff 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
1818golangci-lint --version
1919```
Original file line number Diff line number Diff 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
3838mv " temp-${VERSION} /golangci-lint" " ./golangci-lint-${VERSION} "
3939rm -rf " temp-${VERSION} "
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ trap cleanBinaries EXIT
3737function 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} "
You can’t perform that action at this time.
0 commit comments