Skip to content

Invalid replace directive in go.mod blocks install #810

@robyoder

Description

@robyoder

Describe the bug
go install "github.com/oasdiff/oasdiff@latest" fails with this error:

go: github.com/oasdiff/oasdiff@latest (in github.com/oasdiff/[email protected]):
	The go.mod file for the module providing named packages contains one or
	more replace directives. It must not contain directives that would cause
	it to be interpreted differently than if it were the main module.

To Reproduce
Steps to reproduce the behavior:

  1. go install "github.com/oasdiff/oasdiff@latest"

Expected behavior
No error

Desktop (please complete the following information):

  • OS: macOS 26.3.1
  • Go 1.26.1

Additional context:

This is new in 1.12.2. go install "github.com/oasdiff/[email protected]" works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions