Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix GoToDefinition issues in non-compliant repositories lacking go.sum in GOMODCACHE #1777

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ZhuzhuNo3
Copy link

@ZhuzhuNo3 ZhuzhuNo3 commented Dec 26, 2024

This commit addresses the problem where the GoToDefinition feature fails to execute in certain repositories located within the GOMODCACHE path. These specific repositories were not compliant due to the absence of a go.sum file, which is essential for ensuring module integrity and correct dependency resolution.

Add let g:ycm_gopls_excluded_workspace_paths = null or let g:ycm_gopls_excluded_workspace_paths = ['PATH_TO_GOMODCACHE', 'NO_GOSUM_REPO_PATH'] to enable this change.


This change is Reviewable

…m in GOMODCACHE

This commit addresses the problem where the GoToDefinition feature fails to execute in certain repositories located within the GOMODCACHE path. These specific repositories were not compliant due to the absence of a go.sum file, which is essential for ensuring module integrity and correct dependency resolution.

Add `let g:ycm_gopls_excluded_workspace_paths = null` or `let g:ycm_gopls_excluded_workspace_paths = ['PATH_TO_GOMODCACHE', 'NO_GOSUM_REPO_PATH']` to enable this change.
@ZhuzhuNo3
Copy link
Author

Reproduction Steps: In a personal Golang project, use GoToDefinition to navigate to a cached library that does not include go.sum. In the newly opened file, GoToDefinition cannot be used.

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.

1 participant