-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
plugin: document the use of -trimpath #68349
Comments
please provide a complete reproducer |
This is the same as #63230, unfortunately its closed but still not fixed. It does include a minimal reproduction case @seankhliao. As mentioned in that issue, we don't get to control our up streams so As a workaround we had to refactor our docker builds to remove the use of GOMODCACHE, which isn't ideal. A few things would be helpful until a proper fix is available:
Obviously the ideal would be the underlying issues should be fixed, but seems these issues are hard to solve as the have been around for quite some time. |
The plugin documentation calls this out as:
It doesn't seem feasible to list out every flag that may affect loading of plugins. |
There are flags which folks would expect to impact this So unless these things are explicitly documented users will encounter unexpected issues which waste a lot of time. |
Go version
go version go1.22.3 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Set GOMODCACHE built a plugin and then tried to load it it failed with:
If I don't set
GOMODCACHE
then the plugin loads as expected.What did you see happen?
The plugin load successfully
What did you expect to see?
No errors
The text was updated successfully, but these errors were encountered: