Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

golang mod is case-sensitive. #237

Open
monkey92t opened this issue Feb 24, 2025 · 0 comments
Open

golang mod is case-sensitive. #237

monkey92t opened this issue Feb 24, 2025 · 0 comments

Comments

@monkey92t
Copy link

monkey92t commented Feb 24, 2025

In multiple Microsoft Golang projects, there are inconsistencies in module capitalization, such as github.com/microsoft/go-mssqldb and github.com/Microsoft/go-winio. Under normal circumstances, this works fine, but when using go vendor, Windows, which is case-insensitive for directories, places both go-mssqldb and go-winio under the Microsoft directory. As a result, when compiling on a Linux system with the -mod=vendor flag, an error occurs stating that the package github.com/microsoft/go-mssqldb cannot be found:

cannot find module providing package github.com/microsoft/go-mssqldb: import lookup disabled by -mod=vendor

To avoid such issues, the capitalization of project names under the Microsoft organization should be standardized.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant