Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
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
0
Merge Requests
0
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
Jacklull
k3s
Commits
dd2f6526
Commit
dd2f6526
authored
Nov 02, 2022
by
Brad Davidson
Committed by
Brad Davidson
Nov 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test-mods to allow for pinning version from k8s.io
Signed-off-by:
Brad Davidson
<
brad.davidson@rancher.com
>
parent
87c7ea81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test-mods
scripts/test-mods
+1
-1
No files found.
scripts/test-mods
View file @
dd2f6526
#!/bin/bash
set
-e
-x
res
=
$(
go mod edit
--json
| jq
'.Replace[] | select(.Old.Path | contains("k8s.io/")) | .New.Path'
|
grep
-v
k3s-io
|
wc
-l
)
res
=
$(
go mod edit
--json
| jq
-r
'.Replace[] | select(.Old.Path | contains("k8s.io/")) | .New.Path'
|
grep
-vE
'^(k8s.io/|github.com/k3s-io/)'
|
wc
-l
)
if
[
$res
-gt
0
]
;
then
echo
"Incorrect kubernetes replacement fork in go.mod"
exit
1
...
...
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