Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Probe Engine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leap
Probe Engine
Commits
4692c48d
Commit
4692c48d
authored
4 years ago
by
cyberta
Browse files
Options
Downloads
Patches
Plain Diff
workaround to build probe-engine with go1.15 (#866)
parent
86264d8f
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
build-cli.sh
+7
-3
7 additions, 3 deletions
build-cli.sh
readme_compiletimecheck.go
+8
-0
8 additions, 0 deletions
readme_compiletimecheck.go
with
15 additions
and
3 deletions
build-cli.sh
+
7
−
3
View file @
4692c48d
#!/bin/sh
#!/bin/sh
set
-e
DISABLE_QUIC
=
""
if
[
!
-z
"
$(
go version |
grep
go1.15
)
"
]
;
then
DISABLE_QUIC
=
"DISABLE_QUIC"
;
fi
set
-ex
set
-ex
case
$1
in
case
$1
in
darwin
)
darwin
)
export
GOOS
=
darwin
GOARCH
=
amd64
export
GOOS
=
darwin
GOARCH
=
amd64
go build
-o
./CLI/darwin/amd64
-ldflags
=
"-s -w"
./cmd/miniooni
;;
go build
-o
./CLI/darwin/amd64
-ldflags
=
"-s -w"
-tags
$DISABLE_QUIC
./cmd/miniooni
;;
linux
)
linux
)
export
GOOS
=
linux
GOARCH
=
amd64
export
GOOS
=
linux
GOARCH
=
amd64
go build
-o
./CLI/linux/amd64
-tags
netgo
-ldflags
=
'-s -w -extldflags "-static"'
./cmd/miniooni
;;
go build
-o
./CLI/linux/amd64
-tags
$DISABLE_QUIC
,
netgo
-ldflags
=
'-s -w -extldflags "-static"'
./cmd/miniooni
;;
windows
)
windows
)
export
GOOS
=
windows
GOARCH
=
amd64
export
GOOS
=
windows
GOARCH
=
amd64
go build
-o
./CLI/windows/amd64
-ldflags
=
"-s -w"
./cmd/miniooni
;;
go build
-o
./CLI/windows/amd64
-tags
$DISABLE_QUIC
-ldflags
=
"-s -w"
./cmd/miniooni
;;
*
)
*
)
echo
"usage:
$0
darwin|linux|windows"
1>&2
echo
"usage:
$0
darwin|linux|windows"
1>&2
exit
1
exit
1
...
...
This diff is collapsed.
Click to expand it.
readme_compiletimecheck.go
0 → 100644
+
8
−
0
View file @
4692c48d
//+build !DISABLE_QUIC
//+build go1.15
package
engine
ATTENTION
:
If
you
are
compiling
probe
-
engine
with
go1
.15
please
make
sure
to
pass
-
tags
DISABLE_QUIC
.
Alternatively
use
the
build
script
!
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment