aerokube / images

Browser images for Selenoid and Moon 1.x
https://aerokube.com/images/latest/
Apache License 2.0
168 stars 126 forks source link

Images build fails: main.go:7: running "pkger": exit status 1 #611

Open vikmaksymenko opened 1 year ago

vikmaksymenko commented 1 year ago

I'm trying to build custom browser images. I follow the instructions from https://aerokube.com/images/latest/#_building_procedure

  1. Created a file build.sh with the following content:
    set -x
    go install github.com/markbates/pkger/cmd/pkger@latest
    go generate github.com/aerokube/images
    go build
    ./images --help
    set +x
  2. Run golang container from the images repo docker run -it -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.20 bash build.sh

Got:

2023/03/10 09:02:43 stat : no such file or directory
main.go:7: running "pkger": exit status 1
+ go build
error obtaining VCS status: exit status 128
        Use -buildvcs=false to disable VCS stamping.

Full log in out.txt

merinsTDL commented 1 year ago

Hi! I had a similar issue to build with GG v1.20. This requires to set go path for go packages (i.e. pkger) to find them. You can check if path is set by first running pkger command. https://stackoverflow.com/questions/21001387/how-do-i-set-the-gopath-environment-variable-on-ubuntu-what-file-must-i-edit