Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ophélie Gagnard
slapos.package
Commits
81fe009e
Commit
81fe009e
authored
Aug 02, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
obs/generic: Add support for compilation using downloaded Go modules.
parent
90053262
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
obs/_generic/build-scripts/10tarball_directory.sh
obs/_generic/build-scripts/10tarball_directory.sh
+11
-0
No files found.
obs/_generic/build-scripts/10tarball_directory.sh
View file @
81fe009e
...
@@ -48,6 +48,17 @@ cp bin/buildout bin/backup.buildout
...
@@ -48,6 +48,17 @@ cp bin/buildout bin/backup.buildout
# run $RUN_BUILDOUT_DIR/bin/buildout (note that it modifies itself via rebootstrapping when compiling python)
# run $RUN_BUILDOUT_DIR/bin/buildout (note that it modifies itself via rebootstrapping when compiling python)
./bin/buildout
-v
./bin/buildout
-v
### Fix the go/ directory.
# For some reason the user does not have the "write" permission on some directories within $RUN_BUILDOUT_DIR/go/. As it is
# needed on a directory to delete a file in it, the if block adds the permissions to every
# directories in go/.
# This is performed before copying the directory tree elsewhere so that every copy is fixed.
# It also allows the cleaning script to delete the result of the current script.
if
[
-d
"
$RUN_BUILDOUT_DIR
"
/go
]
;
then
find
"
$RUN_BUILDOUT_DIR
"
/go
-type
d
-exec
chmod
u+xw
{}
+
fi
### Backup $TARBALL_DIR for debugging or other purpose
### Backup $TARBALL_DIR for debugging or other purpose
# add "backup." before the directory name pointed to by $TARBALL_DIR
# add "backup." before the directory name pointed to by $TARBALL_DIR
BACKUP_DIR
=
"
$TARBALL_DIR
"
/../backup.
"
$SOFTWARE_AND_VERSION
"
BACKUP_DIR
=
"
$TARBALL_DIR
"
/../backup.
"
$SOFTWARE_AND_VERSION
"
...
...
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