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: use source-subdir in go-use plugin #980

Merged
merged 2 commits into from
Jan 22, 2025
Merged

fix: use source-subdir in go-use plugin #980

merged 2 commits into from
Jan 22, 2025

Conversation

tigarmo
Copy link
Contributor

@tigarmo tigarmo commented Jan 17, 2025

It's possible, and somewhat common, for a go module to be defined inside a repo's subdir; in this case we can define source-subdir, but the go-use plugin needs to use this - otherwise the repo root gets used.

Fixes #978

  • Have you signed the CLA?
  • Have you added an entry to the changelog (docs/reference/changelog.rst)?

@tigarmo tigarmo requested review from sergiusens, a team and lengau and removed request for a team January 17, 2025 15:55
Copy link
Contributor

@lengau lengau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

And thanks for undoing my changelog mistake.

It's possible, and somewhat common, for a go module to be defined inside a
repo's subdir; in this case we can define source-subdir, but the go-use
plugin needs to use this - otherwise the repo root gets used.

Fixes #978
@tigarmo tigarmo force-pushed the work/go-use-subdir branch from ff28191 to b6f9671 Compare January 22, 2025 12:42
@tigarmo tigarmo merged commit a0bcd83 into main Jan 22, 2025
13 checks passed
@tigarmo tigarmo deleted the work/go-use-subdir branch January 22, 2025 16:29
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-use plugin doesn't respect source-subdir
3 participants