Skip to content

Commit a0f6050

Browse files
Fix GOPATH for windows-test in circleci config (open-telemetry#745)
1 parent c0bfe76 commit a0f6050

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.circleci/config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,15 +262,14 @@ jobs:
262262
executor:
263263
name: win/default
264264
shell: powershell.exe
265-
environment:
266-
GOPATH=~/go
267265
steps:
268266
- checkout
269267
- restore_module_cache
270268
- run:
271269
name: Upgrade golang
272270
command: |
273271
$ErrorActionPreference = 'Stop'
272+
$env:GOPATH = "${env:USERPROFILE}\go"
274273
choco upgrade golang --version=1.17
275274
refreshenv
276275
go env -w CGO_ENABLED=0
@@ -281,6 +280,8 @@ jobs:
281280
name: Unit tests with coverage
282281
command: |
283282
$ErrorActionPreference = 'Stop'
283+
$env:GOPATH = "${env:USERPROFILE}\go"
284+
$env:PATH = "$env:PATH;${env:GOPATH}\bin"
284285
go-acc ./...
285286
# - run:
286287
# name: Upload coverage

0 commit comments

Comments
 (0)