Skip to content

Go item: detect go.work for Go workspace support - #661

Open
llawn wants to merge 1 commit into
IlanCosman:mainfrom
llawn:issue-660-go-workspace
Open

Go item: detect go.work for Go workspace support#661
llawn wants to merge 1 commit into
IlanCosman:mainfrom
llawn:issue-660-go-workspace

Conversation

@llawn

@llawn llawn commented May 26, 2026

Copy link
Copy Markdown

Currently the Go prompt item only checks for go.mod files. Go has
supported multi-module workspaces via go.work files since Go 1.18.

Add go.work to the path check so the Go version indicator is shown
in Go workspace roots that don't have a top-level go.mod.

Closes #660

@llawn
llawn requested a review from IlanCosman as a code owner May 26, 2026 09:01
@llawn
llawn force-pushed the issue-660-go-workspace branch from 28d8066 to 9e1c62d Compare May 26, 2026 09:25
Currently the Go prompt item only checks for go.mod files. Go has
supported multi-module workspaces via go.work files since Go 1.18.

Add go.work to the path check so the Go version indicator is shown
in Go workspace roots that don't have a top-level go.mod.

Closes IlanCosman#660
@llawn
llawn force-pushed the issue-660-go-workspace branch from 9e1c62d to ed18785 Compare May 26, 2026 09:29
@llawn

llawn commented May 26, 2026

Copy link
Copy Markdown
Author

I have also updated _tide_item_go.test.fish to include test coverage for this change, and appended go.work to the tide_pwd_markers list inside functions/tide/configure/configs/{classic,lean,rainbow}.fish. Now all files after grep -rI "go.mod" have been modified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Go version indicator should support Go workspaces: detection of go.work

1 participant