Golang
Last updated at 2023-09-05

go: module “X” appears multiple times in workspace

ClickUp
Note
AI Status
Last Edit By
Last edited time
Sep 5, 2023 08:35 PM
Metatag
Slug
go-module-appears-multiple-times
Writer
Published
Published
Date
Sep 5, 2023
Category
Golang
You can check if the go.mod module name has changed to module X.

Expected go.mod

module your-app-module go 1.20 require(...)

The Problem

module X go 1.20 require ( ... ) require your-app-module v0.0.0-unpublished replace your-app-module => ./
So you can fix your go.mod file.

It doesn’t fix my problem?

I understand your frustration. However, I can only reproduce that. If you have a reproducible project, let me check it for you. Please comment.

Discussion (0)

Related Posts