Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
1
Merge Requests
1
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
gitlab-ce
Commits
ad6a72e6
Commit
ad6a72e6
authored
Apr 05, 2022
by
Matthias Käppler
Committed by
Matthias Kaeppler
Apr 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not use GOPATH in default CI template
Changelog: fixed
parent
ab143f8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
lib/gitlab/ci/templates/Go.gitlab-ci.yml
lib/gitlab/ci/templates/Go.gitlab-ci.yml
+0
-15
No files found.
lib/gitlab/ci/templates/Go.gitlab-ci.yml
View file @
ad6a72e6
...
...
@@ -5,21 +5,6 @@
image
:
golang:latest
variables
:
# Please edit to your GitLab project
REPO_NAME
:
gitlab.com/namespace/project
# The problem is that to be able to use go get, one needs to put
# the repository in the $GOPATH. So for example if your gitlab domain
# is gitlab.com, and that your repository is namespace/project, and
# the default GOPATH being /go, then you'd need to have your
# repository in /go/src/gitlab.com/namespace/project
# Thus, making a symbolic link corrects this.
before_script
:
-
mkdir -p "$GOPATH/src/$(dirname $REPO_NAME)"
-
ln -svf "$CI_PROJECT_DIR" "$GOPATH/src/$REPO_NAME"
-
cd "$GOPATH/src/$REPO_NAME"
stages
:
-
test
-
build
...
...
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