Code Monkey home page Code Monkey logo

action-pull-request-another-repo's People

Contributors

beatrizanami-paygo avatar emanueljr avatar fernandocarvalhopaygo avatar itiho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

action-pull-request-another-repo's Issues

Fine-grained personal access tokens are not supported

It is worth mentioning that Fine-grained personal access tokens (beta phase currently) are not supported for this action.

The first problem is that they require to add the user_name with the token during cloning, which is a simple change in the entrypoint.sh

git clone "https://$INPUT_USER_NAME:[email protected]/$INPUT_DESTINATION_REPO.git" "$CLONE_DIR"

The actual problem is that

HTTP 401: Personal access tokens with fine grained access do not support the GraphQL API (https://api.github.com/graphql)

updating an existing open PR fails (non-fast-forward merge)

when I reran this action against an open PR it failed with this error message

Pushing git commit
+ git push -u origin HEAD:branch-name
To https://github.com/org/repo.git
 ! [rejected]        HEAD -> branch-name (non-fast-forward)
error: failed to push some refs to 'https://github.com/org/repo.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

In our use case we would want this to force-update if it changes before we get it merged in the downstream repo.

It looks like this is already addressed by @jacopocarlini in #19

could we get PR that merged please?

Option to exclude files

A functionality to ignore some folders and files, such as the hooks directory might be really useful.
I am trying to use this action to copy one whole repo to another repo, but I don't want the hooks to create an infinite loop/ fail when the PR is merged.

Feature Request: Recursive copy

I would like to use this action to copy directory structure, something like:

protobuf/
  foo/
    foo1.protobuf
    foo2.protobuf
  bar/
    bar1.protobuf
    bar2.protobuf

However, if I setsource_folder: 'protobuf', the CI step fail with the following error.

cp: omitting directory 'protobuf'
Error: exit with `FAILURE`: 1

Docker build fail

When i am trying use this action, it is failing at docker build step

Cloning into 'gh-cli'...
GOOS= GOARCH= GOARM= GOFLAGS= CGO_ENABLED= go build -o script/build script/build.go
go: github.com/AlecAivazis/survey/[email protected]: Get "https://proxy.golang.org/github.com/%21alec%21aivazis/survey/v2/@v/v2.3.4.mod": x509: certificate signed by unknown authority
make: *** [Makefile:20: script/build] Error 1
The command '/bin/sh -c apk update && apk upgrade && apk add build-base && apk add git && git clone https://github.com/cli/cli.git gh-cli && cd gh-cli && make && mv ./bin/gh /usr/local/bin/' returned a non-zero code: 2

Warning: Docker build failed with exit code 2, back off 6.608 seconds before retry.
/usr/bin/docker build -t 9005c9:9f628741e14343b89e8b2a8a88ee6c8d -f "/gitactions/ghecrunners/actions-runner/_work/_actions/paygoc6/action-pull-request-another-repo/v1.0.5/Dockerfile" "/gitactions/ghecrunners/actions-runner/_work/_actions/paygoc6/action-pull-request-another-repo/v1.0.5"

git workflow failing to build image on 1.0.5

After upgrading from 1.0.1 to 1.0.5, my workflows started failing when building the image:
logs

Dockerfile:3
  --------------------
     2 |     
     3 | >>> RUN apk update && \
     4 | >>>     apk upgrade && \
     5 | >>>     apk add build-base && \
     6 | >>>     apk add git && \
     7 | >>>     git clone https://github.com/cli/cli.git gh-cli && \
     8 | >>>     cd gh-cli && \
     9 | >>>     make && \
    10 | >>>     mv ./bin/gh /usr/local/bin/
    11 |     
  --------------------
  ERROR: failed to solve: process "/bin/sh -c apk update &&     apk upgrade &&     apk add build-base &&     apk add git &&     git clone https://github.com/cli/cli.git gh-cli &&     cd gh-cli &&     make &&     mv ./bin/gh /usr/local/bin/" did not complete successfully: exit code: 2

Error: Docker build failed with exit code 1

Looks like the action is failing. I've attached the output below. I've tried 1.0.1 and 1.0.5

uses: paygoc6/[email protected]

Build container for action use: '/home/runner/work/_actions/paygoc6/action-pull-request-another-repo/v1.0.5/Dockerfile'.
  /usr/bin/docker build -t 3f1698:016f003f1e6545cfa125ea414f6b42c0 -f "/home/runner/work/_actions/paygoc6/action-pull-request-another-repo/v1.0.5/Dockerfile" "/home/runner/work/_actions/paygoc6/action-pull-request-another-repo/v1.0.5"
  #0 building with "default" instance using docker driver
  
  #1 [internal] load .dockerignore
  #1 transferring context: 2B done
  #1 DONE 0.0s
  
  #2 [internal] load build definition from Dockerfile
  #2 transferring dockerfile: 347B done
  #2 DONE 0.0s
  
  #3 [auth] library/golang:pull token for registry-1.docker.io
  #3 DONE 0.0s
  
  #4 [internal] load metadata for docker.io/library/golang:1.16-alpine3.13
  #4 DONE 0.4s
  
  #5 [internal] load build context
  #5 transferring context: 1.64kB done
  #5 DONE 0.0s
  
  #6 [1/3] FROM docker.io/library/golang:1.16-alpine3.13@sha256:c538c29503b9ac4b874ae776a0537fe16fde4581af896d112e53a44a9963b116
  #6 resolve docker.io/library/golang:1.16-alpine3.13@sha256:c538c29503b9ac4b874ae776a0537fe16fde4581af896d112e53a44a9963b116 0.0s done
  #6 sha256:5758d4e389a3f662e94a85fb76143dbe338b64f8d2a65f45536a9663b05305ad 2.82MB / 2.82MB 0.1s
  #6 sha256:04b7a40ca5d5102ba31433c4330802d08e749d55f483003b5ed1f75e257aa9ec 281.80kB / 281.80kB 0.1s done
  #6 sha256:452a8c64b8e1aafdc8bccac5c7c4cef87cea0b1176369fb09f0d82eb1e55a43b 154B / 154B 0.1s done
  #6 sha256:01da5aed4ae6c928ec40de3e972fb6f1b906493f40dc10d005c290908240c23d 14.68MB / 105.76MB 0.2s
  #6 sha256:83967ad3b539cf476302262328778be55c2101e8c6da2558e3be6091dce5460e 156B / 156B 0.2s
  #6 sha256:c538c29503b9ac4b874ae776a0537fe16fde4581af896d112e53a44a9963b116 1.65kB / 1.65kB done
  #6 sha256:bab81aadc644eee23bafdf479e9bd60c418d405dbc79370ababbb2a2f88d8034 1.36kB / 1.36kB done
  #6 sha256:e1b239f8b504c7d785da05826216ab859589ab56cebeb668fb9ce14600cdfd4e 5.37kB / 5.37kB done
  #6 sha256:5758d4e389a3f662e94a85fb76143dbe338b64f8d2a65f45536a9663b05305ad 2.82MB / 2.82MB 0.2s done
  #6 sha256:01da5aed4ae6c928ec40de3e972fb6f1b906493f40dc10d005c290908240c23d 25.17MB / 105.76MB 0.3s
  #6 sha256:83967ad3b539cf476302262328778be55c2101e8c6da2558e3be6091dce5460e 156B / 156B 0.2s done
  #6 extracting sha256:5758d4e389a3f662e94a85fb76143dbe338b64f8d2a65f45536a9663b05305ad 0.1s done
  #6 extracting sha256:04b7a40ca5d5102ba31433c4330802d08e749d55f483003b5ed1f75e257aa9ec 0.0s done
  #6 sha256:01da5aed4ae6c928ec40de3e972fb6f1b906493f40dc10d005c290908240c23d 31.46MB / 105.76MB 0.6s
  #6 sha256:01da5aed4ae6c928ec40de3e972fb6f1b906493f40dc10d005c290908240c23d 51.38MB / 105.76MB 0.8s
  #6 sha256:01da5aed4ae6c928ec40de3e972fb6f1b906493f40dc10d005c290908240c23d 67.11MB / 105.76MB 0.9s
  #6 sha256:01da5aed4ae6c928ec40de3e972fb6f1b906493f40dc10d005c290908240c23d 96.47MB / 105.76MB 1.1s
  #6 sha256:01da5aed4ae6c928ec40de3e972fb6f1b906493f40dc10d005c290908240c23d 105.76MB / 105.76MB 1.2s
  #6 sha256:01da5aed4ae6c928ec40de3e972fb6f1b906493f40dc10d005c290908240c23d 105.76MB / 105.76MB 4.9s done
  #6 extracting sha256:452a8c64b8e1aafdc8bccac5c7c4cef87cea0b1176369fb09f0d82eb1e55a43b done
  #6 extracting sha256:01da5aed4ae6c928ec40de3e972fb6f1b906493f40dc10d005c290908240c23d
  #6 extracting sha256:01da5aed4ae6c928ec40de3e972fb6f1b906493f40dc10d005c290908240c23d 3.9s done
  #6 extracting sha256:83967ad3b539cf476302262328778be55c2101e8c6da2558e3be6091dce5460e done
  #6 DONE 10.3s
  
  #7 [2/3] RUN apk update &&     apk upgrade &&     apk add build-base &&     apk add git &&     git clone https://github.com/cli/cli.git gh-cli &&     cd gh-cli &&     make &&     mv ./bin/gh /usr/local/bin/
  #7 0.209 fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
  #7 0.305 fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
  #7 0.508 v3.13.12-97-g90362e5bc29 [https://dl-cdn.alpinelinux.org/alpine/v3.13/main]
  #7 0.508 v3.13.12-94-g0551adbecc [https://dl-cdn.alpinelinux.org/alpine/v3.13/community]
  #7 0.508 OK: 13906 distinct packages available
  #7 0.739 (1/9) Upgrading musl (1.2.2-r1 -> 1.2.2-r2)
  #7 0.782 (2/9) Upgrading busybox (1.32.1-r7 -> 1.32.1-r9)
  #7 0.798 Executing busybox-1.32.1-r9.post-upgrade
  #7 0.809 (3/9) Upgrading libcrypto1.1 (1.1.1l-r0 -> 1.1.1s-r0)
  #7 0.839 (4/9) Upgrading libssl1.1 (1.1.1l-r0 -> 1.1.1s-r0)
  #7 0.847 (5/9) Upgrading ca-certificates-bundle (20191127-r5 -> 20220614-r0)
  #7 0.853 (6/9) Upgrading ssl_client (1.32.1-r7 -> 1.32.1-r9)
  #7 0.855 (7/9) Upgrading zlib (1.2.11-r3 -> 1.2.12-r3)
  #7 0.859 (8/9) Upgrading ca-certificates (20191127-r5 -> 20220614-r0)
  #7 0.876 (9/9) Upgrading musl-utils (1.2.2-r1 -> 1.2.2-r2)
  #7 0.880 Executing busybox-1.32.1-r9.trigger
  #7 0.883 Executing ca-certificates-20220614-r0.trigger
  #7 0.925 OK: 6 MiB in 15 packages
  #7 1.165 (1/20) Installing libgcc (10.2.1_pre1-r3)
  #7 1.194 (2/20) Installing libstdc++ (10.2.1_pre1-r3)
  #7 1.218 (3/20) Installing binutils (2.35.2-r1)
  #7 1.287 (4/20) Installing libmagic (5.39-r0)
  #7 1.310 (5/20) Installing file (5.39-r0)
  #7 1.312 (6/20) Installing libgomp (10.2.1_pre1-r3)
  #7 1.316 (7/20) Installing libatomic (10.2.1_pre1-r3)
  #7 1.318 (8/20) Installing libgphobos (10.2.1_pre1-r3)
  #7 1.379 (9/20) Installing gmp (6.2.1-r1)
  #7 1.388 (10/20) Installing isl22 (0.22-r0)
  #7 1.406 (11/20) Installing mpfr4 (4.1.0-r0)
  #7 1.429 (12/20) Installing mpc1 (1.2.0-r0)
  #7 1.431 (13/20) Installing gcc (10.2.1_pre1-r3)
  #7 2.101 (14/20) Installing musl-dev (1.2.2-r2)
  #7 2.172 (15/20) Installing libc-dev (0.7.2-r3)
  #7 2.174 (16/20) Installing g++ (10.2.1_pre1-r3)
  #7 2.596 (17/20) Installing make (4.3-r0)
  #7 2.602 (18/20) Installing fortify-headers (1.1-r0)
  #7 2.605 (19/20) Installing patch (2.7.6-r7)
  #7 2.609 (20/20) Installing build-base (0.5-r3)
  #7 2.611 Executing busybox-1.32.1-r9.trigger
  #7 2.615 OK: 196 MiB in 35 packages
  #7 2.855 (1/6) Installing brotli-libs (1.0.9-r3)
  #7 2.893 (2/6) Installing nghttp2-libs (1.42.0-r1)
  #7 2.897 (3/6) Installing libcurl (7.79.1-r3)
  #7 2.904 (4/6) Installing expat (2.2.10-r8)
  #7 2.929 (5/6) Installing pcre2 (10.36-r1)
  #7 2.939 (6/6) Installing git (2.30.6-r0)
  #7 3.050 Executing busybox-1.32.1-r9.trigger
  #7 3.055 OK: 208 MiB in 41 packages
  #7 3.096 Cloning into 'gh-cli'...
  #7 5.515 GOOS= GOARCH= GOARM= GOFLAGS= CGO_ENABLED= go build -o script/build script/build.go
  #7 5.777 go: github.com/cli/go-gh/[email protected] requires
  #7 5.777 	github.com/cli/[email protected]: missing go.sum entry; to add it:
  #7 5.777 	go mod download github.com/cli/browser
  #7 5.779 make: *** [Makefile:21: script/build] Error 1
  #7 ERROR: process "/bin/sh -c apk update &&     apk upgrade &&     apk add build-base &&     apk add git &&     git clone https://github.com/cli/cli.git gh-cli &&     cd gh-cli &&     make &&     mv ./bin/gh /usr/local/bin/" did not complete successfully: exit code: 2
  ------
   > [2/3] RUN apk update &&     apk upgrade &&     apk add build-base &&     apk add git &&     git clone https://github.com/cli/cli.git gh-cli &&     cd gh-cli &&     make &&     mv ./bin/gh /usr/local/bin/:
  2.929 (5/6) Installing pcre2 (10.36-r1)
  2.939 (6/6) Installing git (2.30.6-r0)
  3.050 Executing busybox-1.32.1-r9.trigger
  3.055 OK: 208 MiB in 41 packages
  3.096 Cloning into 'gh-cli'...
  5.515 GOOS= GOARCH= GOARM= GOFLAGS= CGO_ENABLED= go build -o script/build script/build.go
  5.777 go: github.com/cli/go-gh/[email protected] requires
  5.777 	github.com/cli/[email protected]: missing go.sum entry; to add it:
  5.777 	go mod download github.com/cli/browser
  5.779 make: *** [Makefile:21: script/build] Error 1
  ------
  Dockerfile:3
  --------------------
     2 |     
     3 | >>> RUN apk update && \
     4 | >>>     apk upgrade && \
     5 | >>>     apk add build-base && \
     6 | >>>     apk add git && \
     7 | >>>     git clone https://github.com/cli/cli.git gh-cli && \
     8 | >>>     cd gh-cli && \
     9 | >>>     make && \
    10 | >>>     mv ./bin/gh /usr/local/bin/
    11 |     
  --------------------
  ERROR: failed to solve: process "/bin/sh -c apk update &&     apk upgrade &&     apk add build-base &&     apk add git &&     git clone https://github.com/cli/cli.git gh-cli &&     cd gh-cli &&     make &&     mv ./bin/gh /usr/local/bin/" did not complete successfully: exit code: 2
  Warning: Docker build failed with exit code 1, back off 4.549 seconds before retry.
  /usr/bin/docker build -t 3f1698:016f003f1e6545cfa125ea414f6b42c0 -f "/home/runner/work/_actions/paygoc6/action-pull-request-another-repo/v1.0.5/Dockerfile" "/home/runner/work/_actions/paygoc6/action-pull-request-another-repo/v1.0.5"
  #0 building with "default" instance using docker driver
  
  #1 [internal] load .dockerignore
  #1 transferring context: 2B done
  #1 DONE 0.0s
  
  #2 [internal] load build definition from Dockerfile
  #2 transferring dockerfile: 347B done
  #2 DONE 0.0s
  
  #3 [internal] load metadata for docker.io/library/golang:1.16-alpine3.13
  #3 DONE 0.1s
  
  #4 [1/3] FROM docker.io/library/golang:1.16-alpine3.13@sha256:c538c29503b9ac4b874ae776a0537fe16fde4581af896d112e53a44a9963b116
  #4 CACHED
  
  #5 [internal] load build context
  #5 transferring context: 35B done
  #5 DONE 0.0s
  
  #6 [2/3] RUN apk update &&     apk upgrade &&     apk add build-base &&     apk add git &&     git clone https://github.com/cli/cli.git gh-cli &&     cd gh-cli &&     make &&     mv ./bin/gh /usr/local/bin/
  #6 0.189 fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
  #6 0.358 fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
  #6 0.631 v3.13.12-97-g90362e5bc29 [https://dl-cdn.alpinelinux.org/alpine/v3.13/main]
  #6 0.631 v3.13.12-94-g0551adbecc [https://dl-cdn.alpinelinux.org/alpine/v3.13/community]
  #6 0.631 OK: 13906 distinct packages available
  #6 0.861 (1/9) Upgrading musl (1.2.2-r1 -> 1.2.2-r2)
  #6 0.896 (2/9) Upgrading busybox (1.32.1-r7 -> 1.32.1-r9)
  #6 0.911 Executing busybox-1.32.1-r9.post-upgrade
  #6 0.922 (3/9) Upgrading libcrypto1.1 (1.1.1l-r0 -> 1.1.1s-r0)
  #6 0.947 (4/9) Upgrading libssl1.1 (1.1.1l-r0 -> 1.1.1s-r0)
  #6 0.954 (5/9) Upgrading ca-certificates-bundle (20191127-r5 -> 20220614-r0)
  #6 0.958 (6/9) Upgrading ssl_client (1.32.1-r7 -> 1.32.1-r9)
  #6 0.960 (7/9) Upgrading zlib (1.2.11-r3 -> 1.2.12-r3)
  #6 0.962 (8/9) Upgrading ca-certificates (20191127-r5 -> 20220614-r0)
  #6 0.977 (9/9) Upgrading musl-utils (1.2.2-r1 -> 1.2.2-r2)
  #6 0.980 Executing busybox-1.32.1-r9.trigger
  #6 0.983 Executing ca-certificates-20220614-r0.trigger
  #6 1.025 OK: 6 MiB in 15 packages
  #6 1.270 (1/20) Installing libgcc (10.2.1_pre1-r3)
  #6 1.297 (2/20) Installing libstdc++ (10.2.1_pre1-r3)
  #6 1.315 (3/20) Installing binutils (2.35.2-r1)
  #6 1.384 (4/20) Installing libmagic (5.39-r0)
  #6 1.406 (5/20) Installing file (5.39-r0)
  #6 1.409 (6/20) Installing libgomp (10.2.1_pre1-r3)
  #6 1.413 (7/20) Installing libatomic (10.2.1_pre1-r3)
  #6 1.415 (8/20) Installing libgphobos (10.2.1_pre1-r3)
  #6 1.461 (9/20) Installing gmp (6.2.1-r1)
  #6 1.467 (10/20) Installing isl22 (0.22-r0)
  #6 1.483 (11/20) Installing mpfr4 (4.1.0-r0)
  #6 1.507 (12/20) Installing mpc1 (1.2.0-r0)
  #6 1.510 (13/20) Installing gcc (10.2.1_pre1-r3)
  #6 2.180 (14/20) Installing musl-dev (1.2.2-r2)
  #6 2.250 (15/20) Installing libc-dev (0.7.2-r3)
  #6 2.252 (16/20) Installing g++ (10.2.1_pre1-r3)
  #6 2.695 (17/20) Installing make (4.3-r0)
  #6 2.699 (18/20) Installing fortify-headers (1.1-r0)
  #6 2.701 (19/20) Installing patch (2.7.6-r7)
  #6 2.705 (20/20) Installing build-base (0.5-r3)
  #6 2.707 Executing busybox-1.32.1-r9.trigger
  #6 2.711 OK: 196 MiB in 35 packages
  #6 2.955 (1/6) Installing brotli-libs (1.0.9-r3)
  #6 3.002 (2/6) Installing nghttp2-libs (1.42.0-r1)
  #6 3.007 (3/6) Installing libcurl (7.79.1-r3)
  #6 3.022 (4/6) Installing expat (2.2.10-r8)
  #6 3.027 (5/6) Installing pcre2 (10.36-r1)
  #6 3.038 (6/6) Installing git (2.30.6-r0)
  #6 3.151 Executing busybox-1.32.1-r9.trigger
  #6 3.155 OK: 208 MiB in 41 packages
  #6 3.200 Cloning into 'gh-cli'...
  #6 5.653 GOOS= GOARCH= GOARM= GOFLAGS= CGO_ENABLED= go build -o script/build script/build.go
  #6 5.987 go: github.com/cli/go-gh/[email protected] requires
  #6 5.987 	github.com/cli/[email protected]: missing go.sum entry; to add it:
  #6 5.987 	go mod download github.com/cli/browser
  #6 5.988 make: *** [Makefile:21: script/build] Error 1
  #6 ERROR: process "/bin/sh -c apk update &&     apk upgrade &&     apk add build-base &&     apk add git &&     git clone https://github.com/cli/cli.git gh-cli &&     cd gh-cli &&     make &&     mv ./bin/gh /usr/local/bin/" did not complete successfully: exit code: 2
  ------
   > [2/3] RUN apk update &&     apk upgrade &&     apk add build-base &&     apk add git &&     git clone https://github.com/cli/cli.git gh-cli &&     cd gh-cli &&     make &&     mv ./bin/gh /usr/local/bin/:
  3.027 (5/6) Installing pcre2 (10.36-r1)
  3.038 (6/6) Installing git (2.30.6-r0)
  3.151 Executing busybox-1.32.1-r9.trigger
  3.155 OK: 208 MiB in 41 packages
  3.200 Cloning into 'gh-cli'...
  5.653 GOOS= GOARCH= GOARM= GOFLAGS= CGO_ENABLED= go build -o script/build script/build.go
  5.987 go: github.com/cli/go-gh/[email protected] requires
  5.987 	github.com/cli/[email protected]: missing go.sum entry; to add it:
  5.987 	go mod download github.com/cli/browser
  5.988 make: *** [Makefile:21: script/build] Error 1
  ------
  Dockerfile:3
  --------------------
     2 |     
     3 | >>> RUN apk update && \
     4 | >>>     apk upgrade && \
     5 | >>>     apk add build-base && \
     6 | >>>     apk add git && \
     7 | >>>     git clone https://github.com/cli/cli.git gh-cli && \
     8 | >>>     cd gh-cli && \
     9 | >>>     make && \
    10 | >>>     mv ./bin/gh /usr/local/bin/
    11 |     
  --------------------
  ERROR: failed to solve: process "/bin/sh -c apk update &&     apk upgrade &&     apk add build-base &&     apk add git &&     git clone https://github.com/cli/cli.git gh-cli &&     cd gh-cli &&     make &&     mv ./bin/gh /usr/local/bin/" did not complete successfully: exit code: 2
  Warning: Docker build failed with exit code 1, back off 3.852 seconds before retry.
  /usr/bin/docker build -t 3f1698:016f003f1e6545cfa125ea414f6b42c0 -f "/home/runner/work/_actions/paygoc6/action-pull-request-another-repo/v1.0.5/Dockerfile" "/home/runner/work/_actions/paygoc6/action-pull-request-another-repo/v1.0.5"
  #0 building with "default" instance using docker driver
  
  #1 [internal] load .dockerignore
  #1 transferring context: 2B done
  #1 DONE 0.0s
  
  #2 [internal] load build definition from Dockerfile
  #2 transferring dockerfile: 347B done
  #2 DONE 0.0s
  
  #3 [internal] load metadata for docker.io/library/golang:1.16-alpine3.13
  #3 DONE 0.1s
  
  #4 [1/3] FROM docker.io/library/golang:1.16-alpine3.13@sha256:c538c29503b9ac4b874ae776a0537fe16fde4581af896d112e53a44a9963b116
  #4 CACHED
  
  #5 [internal] load build context
  #5 transferring context: 35B done
  #5 DONE 0.0s
  
  #6 [2/3] RUN apk update &&     apk upgrade &&     apk add build-base &&     apk add git &&     git clone https://github.com/cli/cli.git gh-cli &&     cd gh-cli &&     make &&     mv ./bin/gh /usr/local/bin/
  #6 0.186 fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
  #6 0.362 fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
  #6 0.636 v3.13.12-97-g90362e5bc29 [https://dl-cdn.alpinelinux.org/alpine/v3.13/main]
  #6 0.636 v3.13.12-94-g0551adbecc [https://dl-cdn.alpinelinux.org/alpine/v3.13/community]
  #6 0.636 OK: 13906 distinct packages available
  #6 0.868 (1/9) Upgrading musl (1.2.2-r1 -> 1.2.2-r2)
  #6 0.913 (2/9) Upgrading busybox (1.32.1-r7 -> 1.32.1-r9)
  #6 0.934 Executing busybox-1.32.1-r9.post-upgrade
  #6 0.945 (3/9) Upgrading libcrypto1.1 (1.1.1l-r0 -> 1.1.1s-r0)
  #6 0.975 (4/9) Upgrading libssl1.1 (1.1.1l-r0 -> 1.1.1s-r0)
  #6 0.983 (5/9) Upgrading ca-certificates-bundle (20191127-r5 -> 20220614-r0)
  #6 0.988 (6/9) Upgrading ssl_client (1.32.1-r7 -> 1.32.1-r9)
  #6 0.990 (7/9) Upgrading zlib (1.2.11-r3 -> 1.2.12-r3)
  #6 0.994 (8/9) Upgrading ca-certificates (20191127-r5 -> 20220614-r0)
  #6 1.020 (9/9) Upgrading musl-utils (1.2.2-r1 -> 1.2.2-r2)
  #6 1.024 Executing busybox-1.32.1-r9.trigger
  #6 1.027 Executing ca-certificates-20220614-r0.trigger
  #6 1.068 OK: 6 MiB in 15 packages
  #6 1.312 (1/20) Installing libgcc (10.2.1_pre1-r3)
  #6 1.342 (2/20) Installing libstdc++ (10.2.1_pre1-r3)
  #6 1.360 (3/20) Installing binutils (2.35.2-r1)
  #6 1.427 (4/20) Installing libmagic (5.39-r0)
  #6 1.451 (5/20) Installing file (5.39-r0)
  #6 1.453 (6/20) Installing libgomp (10.2.1_pre1-r3)
  #6 1.459 (7/20) Installing libatomic (10.2.1_pre1-r3)
  #6 1.462 (8/20) Installing libgphobos (10.2.1_pre1-r3)
  #6 1.507 (9/20) Installing gmp (6.2.1-r1)
  #6 1.513 (10/20) Installing isl22 (0.22-r0)
  #6 1.529 (11/20) Installing mpfr4 (4.1.0-r0)
  #6 1.553 (12/20) Installing mpc1 (1.2.0-r0)
  #6 1.556 (13/20) Installing gcc (10.2.1_pre1-r3)
  #6 2.226 (14/20) Installing musl-dev (1.2.2-r2)
  #6 2.297 (15/20) Installing libc-dev (0.7.2-r3)
  #6 2.299 (16/20) Installing g++ (10.2.1_pre1-r3)
  #6 2.719 (17/20) Installing make (4.3-r0)
  #6 2.727 (18/20) Installing fortify-headers (1.1-r0)
  #6 2.769 (19/20) Installing patch (2.7.6-r7)
  #6 2.773 (20/20) Installing build-base (0.5-r3)
  #6 2.775 Executing busybox-1.32.1-r9.trigger
  #6 2.780 OK: 196 MiB in 35 packages
  #6 3.026 (1/6) Installing brotli-libs (1.0.9-r3)
  #6 3.065 (2/6) Installing nghttp2-libs (1.42.0-r1)
  #6 3.068 (3/6) Installing libcurl (7.79.1-r3)
  #6 3.075 (4/6) Installing expat (2.2.10-r8)
  #6 3.079 (5/6) Installing pcre2 (10.36-r1)
  #6 3.086 (6/6) Installing git (2.30.6-r0)
  #6 3.196 Executing busybox-1.32.1-r9.trigger
  #6 3.201 OK: 208 MiB in 41 packages
  #6 3.243 Cloning into 'gh-cli'...
  #6 5.523 GOOS= GOARCH= GOARM= GOFLAGS= CGO_ENABLED= go build -o script/build script/build.go
  #6 5.792 go: github.com/cli/go-gh/[email protected] requires
  #6 5.792 	github.com/cli/[email protected]: missing go.sum entry; to add it:
  #6 5.792 	go mod download github.com/cli/browser
  #6 5.793 make: *** [Makefile:21: script/build] Error 1
  #6 ERROR: process "/bin/sh -c apk update &&     apk upgrade &&     apk add build-base &&     apk add git &&     git clone https://github.com/cli/cli.git gh-cli &&     cd gh-cli &&     make &&     mv ./bin/gh /usr/local/bin/" did not complete successfully: exit code: 2
  ------
   > [2/3] RUN apk update &&     apk upgrade &&     apk add build-base &&     apk add git &&     git clone https://github.com/cli/cli.git gh-cli &&     cd gh-cli &&     make &&     mv ./bin/gh /usr/local/bin/:
  3.079 (5/6) Installing pcre2 (10.36-r1)
  3.086 (6/6) Installing git (2.30.6-r0)
  3.196 Executing busybox-1.32.1-r9.trigger
  3.201 OK: 208 MiB in 41 packages
  3.243 Cloning into 'gh-cli'...
  5.523 GOOS= GOARCH= GOARM= GOFLAGS= CGO_ENABLED= go build -o script/build script/build.go
  5.792 go: github.com/cli/go-gh/[email protected] requires
  5.792 	github.com/cli/[email protected]: missing go.sum entry; to add it:
  5.792 	go mod download github.com/cli/browser
  5.793 make: *** [Makefile:21: script/build] Error 1
  ------
  Dockerfile:3
  --------------------
     2 |     
     3 | >>> RUN apk update && \
     4 | >>>     apk upgrade && \
     5 | >>>     apk add build-base && \
     6 | >>>     apk add git && \
     7 | >>>     git clone https://github.com/cli/cli.git gh-cli && \
     8 | >>>     cd gh-cli && \
     9 | >>>     make && \
    10 | >>>     mv ./bin/gh /usr/local/bin/
    11 |     
  --------------------
  ERROR: failed to solve: process "/bin/sh -c apk update &&     apk upgrade &&     apk add build-base &&     apk add git &&     git clone https://github.com/cli/cli.git gh-cli &&     cd gh-cli &&     make &&     mv ./bin/gh /usr/local/bin/" did not complete successfully: exit code: 2
Error: Docker build failed with exit code 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.