Skip to content

Commit fb9581f

Browse files
Updating go.mod rule to take into account some of the exceptions (#25590)
Updating go.mod rule to take into account some of the exceptions, in our tree.
1 parent 73277e8 commit fb9581f

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/instructions/go-mod-standards.instructions.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,24 @@
22
applyTo: '**/go.mod'
33
---
44

5-
- go.mod should only have direct reference to modules within the azure-sdk-for-go (ie: github.com/Azure/azure-sdk-for-go/sdk/<modules>), standard library modules or modules that begin with `golang.org/x/`
6-
- go.mod can have indirect dependencies to 3rd party modules, with the exception of:
5+
go.mod should only have direct reference to:
6+
- modules within the azure-sdk-for-go (ie: github.com/Azure/azure-sdk-for-go/sdk/<modules>)
7+
- Go standard library modules or modules that begin with `golang.org/x/`
8+
- 3rd party modules, but within this list:
79
- github.com/stretchr/testify
8-
10+
- github.com/joho/godotenv
11+
- go.opentelemetry.io/otel/*
12+
- github.com/golang/mock
13+
14+
azidentity can directly reference additional 3rd party modules:
15+
- github.com/AzureAD/microsoft-authentication-extensions-for-go/*
16+
- github.com/golang-jwt/jwt/v5
17+
- github.com/google/uuid # this is only used by a test
18+
19+
azservicebus and azeventhubs can directly reference additional 3rd party modules:
20+
- github.com/coder/websocket
21+
- github.com/Azure/go-amqp
22+
23+
azopenai can directly reference additional 3rd party modules:
24+
- github.com/openai/openai-go/v3
25+

0 commit comments

Comments
 (0)