From dabb056d178b0e7418cb4ea32298c36d2c230efc Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Wed, 7 Sep 2016 18:37:30 -0700 Subject: [PATCH] coreos-go-lang: always update default go version This will override anything someone selected manually with `eselect go` but in the context of the SDK that shouldn't really be an issue. --- .../coreos-overlay/eclass/coreos-go-lang.eclass | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/coreos-go-lang.eclass b/sdk_container/src/third_party/coreos-overlay/eclass/coreos-go-lang.eclass index 8bd59666d2..3924462ee3 100644 --- a/sdk_container/src/third_party/coreos-overlay/eclass/coreos-go-lang.eclass +++ b/sdk_container/src/third_party/coreos-overlay/eclass/coreos-go-lang.eclass @@ -106,18 +106,12 @@ coreos-go-lang_src_install() { dodoc AUTHORS CONTRIBUTORS PATENTS README.md } -eselect_go_update() { - if [[ -z "$(eselect go show)" || ! -f "${EROOT}usr/bin/$(eselect go show)" ]]; then - eselect go update - fi -} - coreos-go-lang_pkg_postinst() { - eselect_go_update + eselect go update } coreos-go-lang_pkg_postrm() { - eselect_go_update + eselect go update } EXPORT_FUNCTIONS pkg_pretend src_compile src_test src_install pkg_postinst pkg_postrm