I'm having issues with plugin deployment

I’m not sure why it hates me.

I’ve converted over to modules, inlined the broken code so I could fix it, I’ve got it to the point I can check out my repo in a clean go install and get all the way from go get to go test without issue yet it still fails in the deployment.

plugin deploy failed
go vet github.com/freman/caddy-reauth@0863eef919a28e0f76cd22f8af6cb3643b4d28af: timed out (buildworker-enforced)

2019/07/03 02:11:03 exec [/tmp/buildenv_07-03-0211.864757606/main] /usr/local/bin/go mod init tmp/caddy/main
go: creating new go.mod: module tmp/caddy/main
2019/07/03 02:11:03 exec [/tmp/buildenv_07-03-0211.864757606/main] /usr/local/bin/go mod edit -replace github.com/mholt/caddy=github.com/caddyserver/caddy@latest
2019/07/03 02:11:03 exec [/tmp/buildenv_07-03-0211.864757606/main] /usr/local/bin/go get -d -x github.com/freman/caddy-reauth@0863eef919a28e0f76cd22f8af6cb3643b4d28af
mkdir -p /gopath/pkg/mod/cache/vcs # git2 https://github.com/caddyserver/caddy
# lock /gopath/pkg/mod/cache/vcs/0e556cf41b491c4aa1cce5aa987514b1ec6e12b1e54d0e7f799361de1258ed72.lock# /gopath/pkg/mod/cache/vcs/0e556cf41b491c4aa1cce5aa987514b1ec6e12b1e54d0e7f799361de1258ed72 for git2 https://github.com/caddyserver/caddy
cd /gopath/pkg/mod/cache/vcs/0e556cf41b491c4aa1cce5aa987514b1ec6e12b1e54d0e7f799361de1258ed72; git ls-remote -q https://github.com/caddyserver/caddy
0.408s # cd /gopath/pkg/mod/cache/vcs/0e556cf41b491c4aa1cce5aa987514b1ec6e12b1e54d0e7f799361de1258ed72; git ls-remote -q https://github.com/caddyserver/caddy
mkdir -p /gopath/pkg/mod/cache/vcs # git2 https://github.com/freman/caddy-reauth
# lock /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f.lock# /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f for git2 https://github.com/freman/caddy-reauth
go: finding github.com/freman/caddy-reauth 0863eef919a28e0f76cd22f8af6cb3643b4d28af
cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git -c log.showsignature=false log -n1 '--format=format:%H %ct %D' 0863eef919a28e0f76cd22f8af6cb3643b4d28af
0.008s # cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git -c log.showsignature=false log -n1 '--format=format:%H %ct %D' 0863eef919a28e0f76cd22f8af6cb3643b4d28af
cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git tag -l
0.006s # cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git tag -l
cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git ls-remote -q https://github.com/freman/caddy-reauth
0.304s # cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git ls-remote -q https://github.com/freman/caddy-reauth
cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git fetch -f --depth=1 https://github.com/freman/caddy-reauth 0863eef919a28e0f76cd22f8af6cb3643b4d28af:refs/dummy
0.565s # cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git fetch -f --depth=1 https://github.com/freman/caddy-reauth 0863eef919a28e0f76cd22f8af6cb3643b4d28af:refs/dummy
cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git -c log.showsignature=false log -n1 '--format=format:%H %ct %D' 0863eef919a28e0f76cd22f8af6cb3643b4d28af
0.008s # cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git -c log.showsignature=false log -n1 '--format=format:%H %ct %D' 0863eef919a28e0f76cd22f8af6cb3643b4d28af
cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git cat-file blob 0863eef919a28e0f76cd22f8af6cb3643b4d28af:go.mod
0.008s # cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git cat-file blob 0863eef919a28e0f76cd22f8af6cb3643b4d28af:go.mod
cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git describe --first-parent --always --abbrev=0 --match 'v[0-9]*.[0-9]*.[0-9]*' --tags 0863eef919a28e0f76cd22f8af6cb3643b4d28af
0.005s # cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git describe --first-parent --always --abbrev=0 --match 'v[0-9]*.[0-9]*.[0-9]*' --tags 0863eef919a28e0f76cd22f8af6cb3643b4d28af
cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git -c log.showsignature=false log -n1 '--format=format:%H %ct %D' 0863eef919a2
0.009s # cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git -c log.showsignature=false log -n1 '--format=format:%H %ct %D' 0863eef919a2
cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git cat-file blob 0863eef919a28e0f76cd22f8af6cb3643b4d28af:go.mod
0.004s # cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git cat-file blob 0863eef919a28e0f76cd22f8af6cb3643b4d28af:go.mod
go: downloading github.com/freman/caddy-reauth v0.0.0-20190703021030-0863eef919a2
cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git cat-file blob 0863eef919a28e0f76cd22f8af6cb3643b4d28af:go.mod
0.004s # cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git cat-file blob 0863eef919a28e0f76cd22f8af6cb3643b4d28af:go.mod
cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git -c core.autocrlf=input -c core.eol=lf archive --format=zip --prefix=prefix/ 0863eef919a28e0f76cd22f8af6cb3643b4d28af
0.038s # cd /gopath/pkg/mod/cache/vcs/fb190c108e4a5663aed1159977447a3d3da476ddfe64e0f71b98fe08c02c9e8f; git -c core.autocrlf=input -c core.eol=lf archive --format=zip --prefix=prefix/ 0863eef919a28e0f76cd22f8af6cb3643b4d28af
go: extracting github.com/freman/caddy-reauth v0.0.0-20190703021030-0863eef919a2
2019/07/03 02:11:06 exec [/tmp/buildenv_07-03-0211.864757606/main] /usr/local/bin/go get -d -x github.com/caddyserver/caddy@v1.0.1
2019/07/03 02:11:06 exec [/tmp/buildenv_07-03-0211.864757606/main] /usr/local/bin/go mod vendor
2019/07/03 02:11:08 exec [/tmp/buildenv_07-03-0211.864757606/main] /bin/bash /tmp/buildenv_07-03-0211.864757606/main/rewrite.bash
2019/07/03 02:11:22 exec [/tmp/buildenv_07-03-0211.864757606/main] /usr/local/bin/go mod edit -dropreplace github.com/mholt/caddy
2019/07/03 02:11:22 exec [/tmp/buildenv_07-03-0211.864757606/main] /usr/local/bin/go mod edit -droprequire github.com/mholt/caddy
2019/07/03 02:11:22 exec [/] /usr/bin/git clone https://github.com/freman/caddy-reauth.git /tmp/buildenv_07-03-0211.864757606/repo
Cloning into '/tmp/buildenv_07-03-0211.864757606/repo'...
2019/07/03 02:11:22 exec [/tmp/buildenv_07-03-0211.864757606/repo] /usr/bin/git checkout 0863eef919a28e0f76cd22f8af6cb3643b4d28af
Note: checking out '0863eef919a28e0f76cd22f8af6cb3643b4d28af'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 0863eef Beat head against go.mod for 20 minutes
2019/07/03 02:11:22 exec [/tmp/buildenv_07-03-0211.864757606/repo] /usr/local/bin/go vet github.com/freman/caddy-reauth/...

Run locally it’s only taking a few seconds

time go vet github.com/freman/caddy-reauth/...

real	0m1.337s
user	0m3.534s
sys	0m1.846s

The official Caddy repository has moved over from mholt/caddy to caddyserver/caddy.

Turns out go modules can’t handle this kind of thing just yet.

You’ll need to ensure any references to mholt/caddy are fixed.

I think the timeout at go vet is probably just intermittent. Might be worth trying a bit later.

The urge to donate a CPU is strong lol

1 Like

It’s at the top of my list to upgrade the thing :slight_smile:

Seems to still dislike me

I’m not sure how long the timeout is, the first timestamp is 2019/07/03 23:45:06 and the last one is 2019/07/03 23:45:15 I’m not sure how long vet is running before it explodes but that’s like 9 seconds

Well, the timeout is 10 seconds :slight_smile: So that sounds about right.

I’ll try to look into it after the holiday.

yeh my test above shows it’s between 3-4 seconds to vet on my machine which isn’t sharing resources.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.