Skip to content

Golang 1.17.13 #264

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions Golang/1.17.13/Recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Recipe for version 1.17.13-bootstrap by eMorph <[email protected]>, on Thu 19 Jun 2025 06:18:53 PM EDT
# Recipe (MakeRecipe) for Golang by Hisham Muhammad <[email protected]>, on Mon Sep 29 15:22:47 BRT 2014
compile_version=017-GIT
url="https://go.dev/dl/go1.17.13.src.tar.gz"
file_size=22206518
file_md5=4476707f05cf6915ec1173038dc357a9
dir='go'
recipe_type=manifest
create_dirs_first=yes
manifest=(
)

environment=(
"GOOS=linux"
"GOBIN=$target/bin"
"GOROOT_FINAL=$target/lib/go"
"CGO_ENABLED=0"
"GOROOT_BOOTSTRAP=$golang_path"
)

do_build()
{
$sudo_exec chown -R "$(whoami)" "$target"
pushd src
bash ./make.bash
popd
$sudo_exec chown -R "$(SuperUserName)" "$target"
}

do_install() {
$sudo_exec mkdir -p "$target/lib/go"
$sudo_exec cp -a pkg "$target/lib/go"
# Because Golang 1.17 is needed to compile Golang 1.20, Golang 1.20 is needed to compile Golang 1.22, Golang 1.22 is needed for Golang 1.24, etc., there has to be a 1.17 version with bootstrapping, so src must also be copied.
$sudo_exec cp -a src "$target/lib/go"
$sudo_exec cp -a bin "$target"
# This is a little hack since the value at GOROOT_FINAL is not picked by the ./make.bash script
# If you know how to correct this, you're encouraged to do so. Please, by all means.
$sudo_exec ln -s "$target/lib/go/pkg" "$target/pkg"
$sudo_exec ln -s "$target/lib/go/src" "$target/src"
}
1 change: 1 addition & 0 deletions Golang/1.17.13/Resources/BuildDependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PIP3:mercurial
1 change: 1 addition & 0 deletions Golang/1.17.13/Resources/BuildInformation
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Glibc 2.30
1 change: 1 addition & 0 deletions Golang/1.17.13/Resources/Dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Golang = 1.4-bootstrap-20171003
6 changes: 6 additions & 0 deletions Golang/1.17.13/Resources/Description
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Name] Golang
[Summary] The Go language
[Description] Go is an open source programming language that makes it easy to
build simple, reliable, and efficient software.
[License] 3-clause BSD
[Homepage] https://golang.org/
4 changes: 4 additions & 0 deletions Golang/1.17.13/i686/Recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
environment=(
${environment[@]}
"GOARCH=386"
)
4 changes: 4 additions & 0 deletions Golang/1.17.13/x86_64/Recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
environment=(
${environment[@]}
"GOARCH=amd64"
)