mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-23 15:31:05 +02:00
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.
This commit is contained in:
parent
657255cb9c
commit
dabb056d17
@ -106,18 +106,12 @@ coreos-go-lang_src_install() {
|
|||||||
dodoc AUTHORS CONTRIBUTORS PATENTS README.md
|
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() {
|
coreos-go-lang_pkg_postinst() {
|
||||||
eselect_go_update
|
eselect go update
|
||||||
}
|
}
|
||||||
|
|
||||||
coreos-go-lang_pkg_postrm() {
|
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
|
EXPORT_FUNCTIONS pkg_pretend src_compile src_test src_install pkg_postinst pkg_postrm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user