-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Open
Labels
Description
Summary
With Go 1.25, a new ignore directive was introduced in go.mod that allows excluding directories from being considered as Go packages during pattern matching (e.g., ./..., all).
The src/portal directory is a frontend Angular/TypeScript project and contains no Go code. It should be ignored by the Go toolchain to:
- Avoid false positives when running
go build ./...orgo test ./... - Prevent potential issues when tools try to process it as a Go package
- Clean up module operations
Proposed Change
Add the following to src/go.mod:
ignore portal
Background
Go 1.25 release notes: https://go.dev/doc/go1.25
The ignore directive specifies directories the go command should ignore. Files in these directories and their subdirectories will be ignored by the go command when matching package patterns, but will still be included in module zip files.
Analysis
Directories in src/:
portal/- Frontend Angular/TypeScript project (no.gofiles) - SHOULD BE IGNORED- All other directories contain Go source files and should NOT be ignored
Acceptance Criteria
- Upgrade
godirective from1.24.6to1.25insrc/go.mod - Add
ignore portaldirective tosrc/go.mod