Guard against enterprise code being imported in OSS (#432)

Export-Source-Commit: 3c11f109f6efba5f875993e47171e52119ed9378
This commit is contained in:
rosstimothy
2026-08-25 11:35:10 -05:00
committed by Gus Rivera
parent 43573d946b
commit 0e7339eb21
+8
View File
@@ -100,6 +100,14 @@ linters:
desc: lib/srv prevents client tools from build on non-linux platforms
- pkg: github.com/gravitational/teleport/lib/web$
desc: lib/web should not be imported to prevent increasing binary size
enterprise:
files:
- '!**/e/**'
deny:
- pkg: github.com/gravitational/teleport/e/
desc: enterprise packages should not be imported outside of the "e" directory
- pkg: github.com/gravitational/teleport/e$
desc: enterprise packages should not be imported outside of the "e" directory
go-cmp:
files:
- '!$test'