Skip to content

Add Go 1.25 ignore Directive for src/portal in go.mod #22700

@bupd

Description

@bupd

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 ./... or go 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 .go files) - SHOULD BE IGNORED
  • All other directories contain Go source files and should NOT be ignored

Acceptance Criteria

  • Upgrade go directive from 1.24.6 to 1.25 in src/go.mod
  • Add ignore portal directive to src/go.mod

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions