Skip to content

Commit 80cbbd9

Browse files
authored
Ensure os package is forbidden in lint (#1924)
1 parent e866aa9 commit 80cbbd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ linters:
7979
pkg: ^(path|path/filepath)$
8080
- pattern: '.*'
8181
msg: a host implementation should likely be used instead
82-
pkg: ^os/
82+
pkg: ^os(/|$)
8383
- pattern: 'GOOS'
8484
msg: a host implementation should likely be used instead
8585
pkg: ^runtime$

0 commit comments

Comments
 (0)