Commit 01545d57 authored by Carlos Ramos Carreño's avatar Carlos Ramos Carreño

component/golang: skip testAmbientCaps tests if there is no nobody user

When there is not a nobody user (for example inside Docker), the
tests TestAmbientCaps and TestAmbientCapsUserns should be skipped
instead of failing.

This has been patched upstream in
https://github.com/golang/go/commit/1959703dddffef61760d5d4fdedc4df8d2d73438
and we use here that patch.

See merge request !1741
parent 537254c0
......@@ -39,9 +39,17 @@ environment =
${:environment-extra}
patch-options = -p1
[golang-common-pre-1.21]
[golang-common-pre-1.25]
<= golang-common
# TestAmbientCaps and TestAmbientCapsUserns tests fail in the absence of a
# "nobody" user
patches +=
https://github.com/golang/go/commit/1959703dddffef61760d5d4fdedc4df8d2d73438.patch?full_index=1#ba1b2de74195880a29bb7913588358e5
[golang-common-pre-1.21]
<= golang-common-pre-1.25
# TestChown currently fails in a user-namespace
# https://github.com/golang/go/issues/42525
# the patches apply to 1.21 > go >= 1.12
......@@ -108,7 +116,7 @@ environment-extra =
GOROOT_BOOTSTRAP=${golang14:location}
[golang1.21]
<= golang-common
<= golang-common-pre-1.25
url = https://go.dev/dl/go1.21.13.src.tar.gz
md5sum = 3454362fc56df5020920e43fee2776ab
# go1.21 requires go1.17.13 to bootstrap (see https://go.dev/blog/rebuild)
......@@ -125,7 +133,7 @@ patches +=
${:_profile_base_location_}/crypto-tls-fix-Config.Time-in-tests-using-expired-ce-go-1-21.patch#8e30a06c854a9654e5b789c887453d64
[golang1.23]
<= golang-common
<= golang-common-pre-1.25
url = https://go.dev/dl/go1.23.5.src.tar.gz
md5sum = e13bea63175a402f3bdac29a048cc8b6
# go1.23 requires go1.20.6 to bootstrap (see https://go.dev/blog/rebuild)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment