Skip to content

Can this use go.work files? #3

@csm10495

Description

@csm10495

I have an internal repo where I have 2 folders:

A/
B/

Both A and B are their own go modules. I have a go.work file in the root of the repo that says:

go 1.20

use (
	./A
	./B
)

Currently when trying to use this hook, I get:

go: cannot find main module, but found .git/config in C:\Users\csm10495\Desktop\monoscrape
        to create a module there, run:
        go mod init

Theoretically this could look at go.work, then run on each module denoted there.

Also for go-mod-tidy (not sure if related) it says:

go: 'go mod tidy' accepts no arguments

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions