How to setup a Woodpecker (forge) addon #3266
Replies: 3 comments 21 replies
-
These are the relater PR's that added the addon support at woodpecker #2984 , #2751 So it seems that @qwerty287 your feedback here will be valuable! |
Beta Was this translation helpful? Give feedback.
-
Downloaded sources from https://github.com/woodpecker-ci/woodpecker/releases/tag/v2.2.2 and run using my addon but the issues still presists:
Also I can see that there is no binary available fro MacOS to test this using the binary directly. |
Beta Was this translation helpful? Give feedback.
-
@mzampetakis Now with #3268 the approach is different. I'll close this for now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to implement a Woodpecker CI forge addon as documented here: https://woodpecker-ci.org/docs/administration/addons/creating-addons
The issue is that when I try to run woodpecker server it responds the plugin was built with a different version of a package.
So my addon is like this:
And the dependencies from go.mod:
I compile my addon using
go build -buildmode plugin -o=/tmp/bin/my-addon ./
and then I am running woodpecker server usinggo run ./cmd/server
having this in the .env fileWOODPECKER_ADDONS=/tmp/bin/my-addon
.The result is:
My go env is:
and I am testing this under MacOs with arm64 CPU.
Also tried to add the
-trimpath
argument at the plugin compilationgo build -trimpath -buildmode plugin -o=/tmp/bin/my-addon ./
and then when I tried to run woodpecker server I got this error:Also tried to clean caches using
go clean -modcache
&go clean -cache
.Is there anything wrong with my setup or the commands? Is there any incompatibility issue?
EDIT: I have woodpecker checked out from
commit a19c488a99a3be0e7502743f5db8ae4462086145 (HEAD, tag: v2.2.2)
Beta Was this translation helpful? Give feedback.
All reactions