Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
3688bf44
Commit
3688bf44
authored
Apr 09, 2020
by
Casey Strouse
Committed by
GitHub
Apr 09, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3995 from uberhacker/update-go-package
Update go from 1.14 to 1.14.2
parents
c1a70107
e6ca83b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
25 deletions
+31
-25
packages/go.rb
packages/go.rb
+31
-25
No files found.
packages/go.rb
View file @
3688bf44
...
...
@@ -3,16 +3,24 @@ require 'package'
class
Go
<
Package
description
'Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.'
homepage
'https://golang.org/'
version
'1.14'
source_url
'https://dl.google.com/go/go1.14.src.tar.gz'
source_sha256
'
6d643e46ad565058c7a39dac01144172ef9bd476521f42148be59249e4b74389
'
version
'1.14
.2
'
source_url
'https://dl.google.com/go/go1.14.
2.
src.tar.gz'
source_sha256
'
98de84e69726a66da7b4e58eac41b99cbe274d7e8906eeb8a5b7eb0aadee7f7c
'
binary_url
({
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/go-1.14.2-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/go-1.14.2-chromeos-armv7l.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/go-1.14.2-chromeos-i686.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/go-1.14.2-chromeos-x86_64.tar.xz'
,
})
binary_sha256
({
aarch64:
'6370b16b60d922b2809ee02daa50001389d8a140e8d9205d78dea1051dd5862b'
,
armv7l:
'6370b16b60d922b2809ee02daa50001389d8a140e8d9205d78dea1051dd5862b'
,
i686:
'c924075cfa74fd1055a9bca62308f131d522ae527eac082dc33ba95b7db2d23e'
,
x86_64:
'8c6d89a1a321fc0e89d5a200cedec07145ffece37c0d42c8859c550b7bbef65d'
,
})
# Tests require
s
perl
# Tests require perl
depends_on
'perl'
=>
:build
# go is required to build versions of go > 1.4
unless
File
.
exist?
"
#{
CREW_PREFIX
}
/share/go/bin/go"
...
...
@@ -20,33 +28,37 @@ class Go < Package
end
def
self
.
build
FileUtils
.
cd
(
'src'
)
do
FileUtils
.
cd
'src'
do
ENV
[
'GOROOT'
]
=
'..'
ENV
[
'TMPDIR'
]
=
"
#{
CREW_PREFIX
}
/tmp"
ENV
[
'GOROOT_FINAL'
]
=
"
#{
CREW_PREFIX
}
/share/go"
ENV
[
'GOHOSTARCH'
]
=
'arm'
if
ARCH
==
'aarch64'
# install with go_bootstrap if go is not in the path
unless
File
.
exist?
"
#{
CREW_PREFIX
}
/share/go/bin/go"
system
"GOROOT_BOOTSTRAP=
#{
CREW_PREFIX
}
/share/go_bootstrap/go \
TMPDIR=
#{
CREW_PREFIX
}
/tmp \
GOROOT_FINAL=
#{
CREW_PREFIX
}
/share/go \
%s \
./make.bash"
%
'GOHOSTARCH=arm'
if
ARCH
==
'aarch64'
ENV
[
'GOROOT_BOOTSTRAP'
]
=
"
#{
CREW_PREFIX
}
/share/go_bootstrap/go"
ENV
[
'PATH'
]
=
ENV
[
'PATH'
]
+
":
#{
CREW_PREFIX
}
/share/go_bootstrap/go/bin"
else
system
"GOROOT_BOOTSTRAP=
#{
CREW_PREFIX
}
/share/go \
TMPDIR=
#{
CREW_PREFIX
}
/tmp \
GOROOT_FINAL=
#{
CREW_PREFIX
}
/share/go \
%s \
./make.bash"
%
'GOHOSTARCH=arm'
if
ARCH
==
'aarch64'
ENV
[
'GOROOT_BOOTSTRAP'
]
=
"
#{
CREW_PREFIX
}
/share/go"
end
system
'./make.bash'
end
end
def
self
.
check
FileUtils
.
cd
'src'
do
system
"PATH=
\"
#{
Dir
.
pwd
}
/../bin:$PATH
\"
GOROOT=
\"
#{
Dir
.
pwd
}
/..
\"
TMPDIR=
\"
#{
CREW_PREFIX
}
/tmp
\"
go tool dist test"
end
end
def
self
.
install
dest
=
"
#{
CREW_DEST_PREFIX
}
/share/"
system
"mkdir"
,
"-p"
,
dest
FileUtils
.
mkdir_p
dest
FileUtils
.
cp_r
Dir
.
pwd
,
dest
# make a symbolic link for #{CREW_PREFIX}/bin/{go,gofmt}
system
"mkdir"
,
"-p"
,
"
#{
CREW_DEST_PREFIX
}
/bin"
system
"ln"
,
"-s"
,
"
#{
CREW_PREFIX
}
/share/go/bin/go"
,
"
#{
CREW_DEST_PREFIX
}
/bin"
system
"ln"
,
"-s"
,
"
#{
CREW_PREFIX
}
/share/go/bin/gofmt"
,
"
#{
CREW_DEST_PREFIX
}
/bin"
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/bin"
FileUtils
.
ln_s
"
#{
CREW_PREFIX
}
/share/go/bin/go"
,
"
#{
CREW_DEST_PREFIX
}
/bin"
FileUtils
.
ln_s
"
#{
CREW_PREFIX
}
/share/go/bin/gofmt"
,
"
#{
CREW_DEST_PREFIX
}
/bin"
end
def
self
.
postinstall
...
...
@@ -63,10 +75,4 @@ class Go < Package
puts
"export TMPDIR=
#{
CREW_PREFIX
}
/tmp"
.
lightblue
puts
end
def
self
.
check
FileUtils
.
cd
(
'src'
)
do
system
"PATH=
\"
#{
Dir
.
pwd
}
/../bin:$PATH
\"
GOROOT=
\"
#{
Dir
.
pwd
}
/..
\"
TMPDIR=
\"
#{
CREW_PREFIX
}
/tmp
\"
go tool dist test"
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment