Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing build: package embed is not in GOROOT #148

Closed
jimafisk opened this issue Mar 22, 2021 · 4 comments
Closed

Failing build: package embed is not in GOROOT #148

jimafisk opened this issue Mar 22, 2021 · 4 comments

Comments

@jimafisk
Copy link
Member

Failing build: https://github.com/plentico/plenti/runs/2170574624

Error:    ⨯ release failed after 19.09s error=failed to build for linux_amd64: cmd/root.go:5:2: package embed is not in GOROOT (/opt/hostedtoolcache/go/1.14.15/x64/src/embed)
Error: cmd/build/client.go:6:2: package io/fs is not in GOROOT (/opt/hostedtoolcache/go/1.14.15/x64/src/io/fs)

Error: The process '/opt/hostedtoolcache/goreleaser-action/0.160.0/x64/goreleaser' failed with exit code 1
@jimafisk
Copy link
Member Author

For #119

@jimafisk
Copy link
Member Author

Looks like we're using Go v1.14:

go-version: 1.14.x

Need to bump this to v1.16 for embed support.

@jimafisk
Copy link
Member Author

jimafisk commented Mar 23, 2021

New failure: https://github.com/plentico/plenti/runs/2171421181

  ⨯ release failed after 75.94s error=failed to build for darwin_amd64: # runtime/cgo
/home/runner/work/osxcross/target/bin/x86_64-apple-darwin19-ld: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
clang: error: unable to execute command: No such file or directory
clang: error: linker command failed due to signal (use -v to see invocation)

Error: The process '/opt/hostedtoolcache/goreleaser-action/0.160.0/x64/goreleaser' failed with exit code 1

@jimafisk
Copy link
Member Author

The problem seems to be that Ubuntu 20.04 ships with libssl1.1. More details here: plentico/osxcross-target#1

The comment on this question clarifies this:

The package libssl1.0.0 was dropped from Ubuntu after 18.04. Newer releases of Ubuntu use the package libssl1.1. 18.04 has both packages.

OSXCross really wants to work with the older version of libssl, so instead of forcing a newer version of Ubuntu to install the older lib, I just made GitHub Actions use ubuntu-18.04 instead of ubuntu-latest (alias for ubuntu-20.04).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant