Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
c31f2ec0
Commit
c31f2ec0
authored
Apr 01, 2026
by
Boris Yumankulov
Committed by
Vitaly Lipatov
Apr 01, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgs: vendor Go deps from submodule go.mod into top-level vendor (Closes #4)
Signed-off-by:
Boris Yumankulov
<
boria138@altlinux.org
>
parent
8b0fe04c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
rpmgs
bin/rpmgs
+12
-3
No files found.
bin/rpmgs
View file @
c31f2ec0
...
...
@@ -583,14 +583,21 @@ update_predownloaded()
#### go only part
if
[
-s
"./go.mod"
]
&&
[
!
-d
"./vendor"
]
;
then
local
i
local
go_dir
=
''
for
i
in
*
/go.mod
;
do
[
-s
"
$i
"
]
||
continue
go_dir
=
$(
dirname
"
$i
"
)
[
-d
"./vendor"
]
&&
continue
local
COMMITMSG
=
''
local
PRODUCTION
=
''
#[ "$MODE" = "production" ] && PRODUCTION='--no-dev'
info
"Detected go.mod install hook, running ..."
docmd go mod vendor
$PRODUCTION
||
fatal
cd
$go_dir
||
fatal
docmd go mod vendor
-o
../vendor
$PRODUCTION
||
fatal
COMMITMSG
=
"update vendored go modules with go mod vendor
$PRODUCTION
for
$VERSION
(see
$SDNAME
in .gear/rules)"
if
[
-s
$RGD
/.gear/predownloaded-postinstall-hook
]
;
then
...
...
@@ -598,8 +605,10 @@ update_predownloaded()
$RUNHOOK
$RGD
/.gear/predownloaded-postinstall-hook
$MODE
$VERSION
fi
cd
-
>
/dev/null
KEEP_DIRS
=
"
$KEEP_DIRS
vendor"
fi
done
#### end of go only part
...
...
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