sanjp10 / release-action Goto Github PK
View Code? Open in Web Editor NEWGithub action to run https://github.com/sanjP10/release
License: Apache License 2.0
Github action to run https://github.com/sanjP10/release
License: Apache License 2.0
Building docker image using Dockerfile
doesn't work
run docker build .
output:
release-action % docker build .
[+] Building 14.9s (6/7)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 395B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/golang:1.18.0-alpine 2.1s
=> [1/3] FROM docker.io/library/golang:1.18.0-alpine@sha256:a2ca4f4c0828b1b426a3153b068bf32a21868911c57a9fc4dccdc5fbb6553b35 7.6s
=> => resolve docker.io/library/golang:1.18.0-alpine@sha256:a2ca4f4c0828b1b426a3153b068bf32a21868911c57a9fc4dccdc5fbb6553b35 0.0s
=> => sha256:27ea6ad0422c7aa665bc6e88d13618bc0c2752b6b8facaed7fd39bdef8ac66fb 5.56kB / 5.56kB 0.0s
=> => sha256:c7637d0a7b497b253b73e807a5e676ba3f0750afafa9e1a4c61260513feb321f 271.76kB / 271.76kB 0.2s
=> => sha256:bda57b85efde0ed435315f4f74625e7a055107aa29e8c91a313ca6d525fb709c 154B / 154B 0.3s
=> => sha256:99901326342f18565ac1524d94f353ff6246c30b0ae3afda5c034d68c4f019f1 110.42MB / 110.42MB 4.1s
=> => sha256:a2ca4f4c0828b1b426a3153b068bf32a21868911c57a9fc4dccdc5fbb6553b35 1.65kB / 1.65kB 0.0s
=> => sha256:fe66e641602dfb60f5c746b57bde60fcafce94b44f2bc2ca2bdc1e3711b24911 1.36kB / 1.36kB 0.0s
=> => extracting sha256:c7637d0a7b497b253b73e807a5e676ba3f0750afafa9e1a4c61260513feb321f 0.5s
=> => sha256:a56a79e0c6e587e78eeff8da09c2a0a9881a06d450c3dde66bfcda67f8156ed3 126B / 126B 0.6s
=> => extracting sha256:bda57b85efde0ed435315f4f74625e7a055107aa29e8c91a313ca6d525fb709c 0.0s
=> => extracting sha256:99901326342f18565ac1524d94f353ff6246c30b0ae3afda5c034d68c4f019f1 3.1s
=> => extracting sha256:a56a79e0c6e587e78eeff8da09c2a0a9881a06d450c3dde66bfcda67f8156ed3 0.0s
=> [internal] load build context 0.2s
=> => transferring context: 465B 0.2s
=> ERROR [2/3] RUN go install github.com/sanjP10/[email protected] 5.0s
------
> [2/3] RUN go install github.com/sanjP10/[email protected]:
#4 0.450 go: downloading github.com/sanjP10/release v0.0.0-20221217120204-27c9a160b682
#4 0.881 go: downloading github.com/google/subcommands v1.2.0
#4 0.888 go: downloading github.com/hashicorp/go-version v1.6.0
#4 0.893 go: downloading github.com/go-git/go-git/v5 v5.5.1
#4 1.251 go: downloading github.com/go-git/go-billy/v5 v5.3.1
#4 1.257 go: downloading github.com/kevinburke/ssh_config v1.2.0
#4 1.258 go: downloading github.com/skeema/knownhosts v1.1.0
#4 1.259 go: downloading github.com/xanzy/ssh-agent v0.3.3
#4 1.388 go: downloading golang.org/x/crypto v0.3.0
#4 1.417 go: downloading golang.org/x/net v0.2.0
#4 1.456 go: downloading github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4
#4 1.530 go: downloading github.com/imdario/mergo v0.3.13
#4 1.620 go: downloading github.com/sergi/go-diff v1.2.0
#4 1.654 go: downloading github.com/emirpasic/gods v1.18.1
#4 1.693 go: downloading github.com/go-git/gcfg v1.5.0
#4 1.726 go: downloading github.com/pjbgf/sha1cd v0.2.3
#4 1.810 go: downloading golang.org/x/sys v0.2.0
#4 1.820 go: downloading github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99
#4 1.831 go: downloading gopkg.in/warnings.v0 v0.1.2
#4 1.945 go: downloading github.com/cloudflare/circl v1.1.0
#4 3.403 # github.com/pjbgf/sha1cd/cgo
#4 3.403 cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in $PATH
------
executor failed running [/bin/sh -c go install github.com/sanjP10/[email protected]]: exit code: 2
The docker image built successfully
The same output is from github actions and after running it locally.
Building Dockerfile
doesn't work anymore. I found it using my release pipeline but I also reproduced it via simply running docker build .
in the repository.
Run docker build .
output:
% docker build .
[+] Building 4.6s (6/7)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 37B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/golang:1.15.8-alpine 0.2s
=> [internal] load build context 0.0s
=> => transferring context: 35B 0.0s
=> CACHED [1/3] FROM docker.io/library/golang:1.15.8-alpine@sha256:e3685a09bcee71a4d2be053f082687098da60ee21d36bb42828958cccea7df79 0.0s
=> ERROR [2/3] RUN GO111MODULE=on go get -u github.com/sanjP10/[email protected] 4.4s
------
> [2/3] RUN GO111MODULE=on go get -u github.com/sanjP10/[email protected]:
#5 0.238 go: downloading github.com/sanjP10/release v0.0.0-20220106083849-9513d660e4d6
#5 0.431 go: github.com/sanjP10/release 3.2.0 => v0.0.0-20220106083849-9513d660e4d6
#5 0.937 go: downloading github.com/google/subcommands v1.2.0
#5 0.940 go: downloading github.com/go-git/go-git/v5 v5.4.2
#5 0.992 go: downloading github.com/hashicorp/go-version v1.4.0
#5 1.068 go: downloading github.com/mitchellh/go-homedir v1.1.0
#5 1.069 go: downloading github.com/go-git/gcfg v1.5.0
#5 1.069 go: downloading github.com/go-git/go-billy/v5 v5.3.1
#5 1.069 go: downloading golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b
#5 1.070 go: downloading github.com/emirpasic/gods v1.12.0
#5 1.070 go: downloading github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7
#5 1.070 go: downloading github.com/xanzy/ssh-agent v0.3.0
#5 1.071 go: downloading github.com/acomagu/bufpipe v1.0.3
#5 1.071 go: downloading github.com/imdario/mergo v0.3.12
#5 1.091 go: downloading github.com/sergi/go-diff v1.1.0
#5 1.092 go: downloading github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99
#5 1.096 go: downloading gopkg.in/warnings.v0 v0.1.2
#5 1.103 go: downloading github.com/Microsoft/go-winio v0.4.16
#5 1.111 go: downloading golang.org/x/sys v0.0.0-20210502180810-71e4cd670f79
#5 1.138 go: downloading golang.org/x/net v0.0.0-20210326060303-6b1517762897
#5 1.285 go: downloading github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351
#5 1.796 go: golang.org/x/sys upgrade => v0.0.0-20220330033206-e17cdc41300f
#5 1.796 go: golang.org/x/net upgrade => v0.0.0-20220325170049-de3da57026de
#5 1.875 go: github.com/xanzy/ssh-agent upgrade => v0.3.1
#5 1.892 go: github.com/sergi/go-diff upgrade => v1.2.0
#5 1.893 go: github.com/ProtonMail/go-crypto upgrade => v0.0.0-20220113124808-70ae35bab23f
#5 1.940 go: github.com/Microsoft/go-winio upgrade => v0.5.2
#5 1.969 go: github.com/go-git/go-billy/v5 upgrade => v5.3.1
#5 1.993 go: golang.org/x/crypto upgrade => v0.0.0-20220331220935-ae2d96664a29
#5 2.078 go: github.com/kevinburke/ssh_config upgrade => v1.2.0
#5 2.162 go: downloading github.com/sergi/go-diff v1.2.0
#5 2.163 go: downloading golang.org/x/sys v0.0.0-20220330033206-e17cdc41300f
#5 2.163 go: downloading github.com/ProtonMail/go-crypto v0.0.0-20220113124808-70ae35bab23f
#5 2.166 go: downloading github.com/xanzy/ssh-agent v0.3.1
#5 2.167 go: downloading golang.org/x/net v0.0.0-20220325170049-de3da57026de
#5 2.169 go: downloading golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29
#5 2.185 go: downloading github.com/kevinburke/ssh_config v1.2.0
#5 2.406 go: downloading github.com/Microsoft/go-winio v0.5.2
#5 3.707 # github.com/kevinburke/ssh_config
#5 3.707 pkg/mod/github.com/kevinburke/[email protected]/config.go:281:12: undefined: os.ReadFile
#5 3.707 pkg/mod/github.com/kevinburke/[email protected]/config.go:296:12: undefined: io.ReadAll
------
executor failed running [/bin/sh -c GO111MODULE=on go get -u github.com/sanjP10/[email protected]]: exit code: 2
Docker image successfully built
https://github.com/kevinburke/ssh_config released version 1.2.0 today which doesn't work. ssh_config
uses GO111MODULE=off
in their pipeline and it's working, release-action
uses GO111MODULE=on
.
Suspected commit where it stopped working with release-action
: kevinburke/ssh_config@6ad71ac
I also tried to switch GO111MODULE
to off
in release-action
Dockerfile
locally but I got another errors (I'm not familiar with go environment):
=> ERROR [2/3] RUN GO111MODULE=off go get -u github.com/sanjP10/[email protected] 0.2s
------
> [2/3] RUN GO111MODULE=off go get -u github.com/sanjP10/[email protected]:
#5 0.233 go: cannot use path@version syntax in GOPATH mode
------
executor failed running [/bin/sh -c GO111MODULE=off go get -u github.com/sanjP10/[email protected]]: exit code: 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.