A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/arduino/arduino-fwuploader/commit/ad1e806435b827425ec2f56cb6e89f00b8bc3e18 below:

Make taskfile compatible with Go 1.16 (#102) · arduino/arduino-fwuploader@ad1e806 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+21

-5

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+21

-5

lines changed Original file line number Diff line number Diff line change

@@ -59,6 +59,21 @@ tasks:

59 59

cmds:

60 60

- poetry run mkdocs build -s

61 61 62 +

# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml

63 +

go:lint:

64 +

desc: Lint Go code

65 +

dir: "{{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}}"

66 +

cmds:

67 +

- |

68 +

if ! which golint &>/dev/null; then

69 +

echo "golint not installed or not in PATH. Please install: https://github.com/golang/lint#installation"

70 +

exit 1

71 +

fi

72 +

- |

73 +

golint \

74 +

{{default "-min_confidence 0.8 -set_exit_status" .GO_LINT_FLAGS}} \

75 +

{{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}

76 + 62 77

# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-markdown-task/Taskfile.yml

63 78

markdown:check-links:

64 79

desc: Check for broken links

@@ -142,7 +157,7 @@ tasks:

142 157

cmds:

143 158

- test -z $(go fmt ./...)

144 159

- go vet ./...

145 -

- "'{{.GOLINTBIN}}' {{.GOLINTFLAGS}} ./..."

160 +

- task: go:lint

146 161

- task: docs:check

147 162

- task: config:check

148 163

- task: general:check-formatting

@@ -190,6 +205,11 @@ tasks:

190 205

vars:

191 206

PROJECT_NAME: "arduino-fwuploader"

192 207

DIST_DIR: "dist"

208 +

# Path of the project's primary Go module:

209 +

DEFAULT_GO_MODULE_PATH: ./

210 +

DEFAULT_GO_PACKAGES:

211 +

sh: |

212 +

echo $(cd {{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}} && go list ./... | tr '\n' ' ' || echo '"ERROR: Unable to discover Go packages"')

193 213

# build vars

194 214

COMMIT:

195 215

sh: echo "$(git log -n 1 --format=%h)"

@@ -219,9 +239,6 @@ vars:

219 239

-X github.com/arduino/arduino-fwuploader/version.date={{.TIMESTAMP}}

220 240

'

221 241

# check-lint vars

222 -

GOLINTBIN:

223 -

sh: go list -f {{"{{"}}".Target{{"}}"}}" golang.org/x/lint/golint

224 -

GOLINTFLAGS: "-min_confidence 0.8 -set_exit_status"

225 242

PRETTIER: prettier@2.0.5

226 243

DOCS_VERSION: dev

227 244

DOCS_ALIAS: ""

Original file line number Diff line number Diff line change

@@ -347,7 +347,6 @@ golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTk

347 347

golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=

348 348

golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=

349 349

golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=

350 -

golang.org/x/lint v0.0.0-20190930215403-16217165b5de h1:5hukYrvBGR8/eNkX5mdUezrA6JiaEZDtJb9Ei+1LlBs=

351 350

golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=

352 351

golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=

353 352

golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4