You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, there will be some attached files in the project, for my instance,
I have a compose folder in my project root, I need to map some folders from container like data files of database, these folders are ignored by git, but go mod tidy still scans these folders.
Sometimes these folders have special permissions, permission error occurs when go mod tidy scans like this
hungtcs.rhino/compose/data/db/data: open /home/hungtcs/Workspaces/@hungtcs/rhino/compose/data/db/data: permission denied
hungtcs.rhino/compose/data/pgadmin/sessions: open /home/hungtcs/Workspaces/@hungtcs/rhino/compose/data/pgadmin/sessions: permission denied
hungtcs.rhino/compose/data/pgadmin/storage/hungtcs_outlook.com: open /home/hungtcs/Workspaces/@hungtcs/rhino/compose/data/pgadmin/storage/hungtcs_outlook.com: permission denied
pattern all: open /home/hungtcs/Workspaces/@hungtcs/rhino/compose/data/db/data: permission denied
pattern all: open /home/hungtcs/Workspaces/@hungtcs/rhino/compose/data/pgadmin/sessions: permission denied
pattern all: open /home/hungtcs/Workspaces/@hungtcs/rhino/compose/data/pgadmin/storage/hungtcs_outlook.com: permission denied
What did you expect to see?
I hope go can intelligently ignore these folders, or provide a configurable way to ignore it.
I know one way is to rename the folder name to start with . or _ but this doesn't work in all cases,
because this severely damages the aesthetics of the project folder structure.
What did you see instead?
I currently have to rename the folders to start with ./_ to avoid this problem.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Sometimes, there will be some attached files in the project, for my instance,
I have a
compose
folder in my project root, I need to map some folders from container like data files of database,these folders are ignored by git, but go mod tidy still scans these folders.
Sometimes these folders have special permissions, permission error occurs when
go mod tidy
scans like thisWhat did you expect to see?
I hope go can intelligently ignore these folders, or provide a configurable way to ignore it.
I know one way is to rename the folder name to start with
.
or_
but this doesn't work in all cases,because this severely damages the aesthetics of the project folder structure.
What did you see instead?
I currently have to rename the folders to start with
./_
to avoid this problem.The text was updated successfully, but these errors were encountered: