Skip to content

Improve detection of Go projects#317

Open
FallenWarrior2k wants to merge 2 commits intocaiogondim:masterfrom
FallenWarrior2k:go-detection
Open

Improve detection of Go projects#317
FallenWarrior2k wants to merge 2 commits intocaiogondim:masterfrom
FallenWarrior2k:go-detection

Conversation

@FallenWarrior2k
Copy link
Copy Markdown

By checking for the files used by the go mod and dep tools, this should noticeably improve the detection of Go projects.

This prevents unnecessarily generating a lot of file names when in a
directory with lots of Go files that satisfy one of the other checks.
@134130
Copy link
Copy Markdown

134130 commented May 29, 2024

@caiogondim Can you approve this PR?

In some go projects, there is no *.go files on the root of project but go.mod file. Because the main.go files are collected in /cmd/**/main.go and the libraries are in /pkg/**/*.go

So currently, the prompt_go is not working on some go projects.

Thanks!

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.

2 participants