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
2986d3eb
Commit
2986d3eb
authored
Aug 28, 2015
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13235 from pwittrock/update_development_md
Update development godep instructions
parents
417ba2f1
1ac0579d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
development.md
docs/devel/development.md
+11
-2
No files found.
docs/devel/development.md
View file @
2986d3eb
...
...
@@ -145,6 +145,8 @@ Here's a quick walkthrough of one way to use godeps to add or update a Kubernete
1) Devote a directory to this endeavor:
_Devoting a separate directory is not required, but it is helpful to separate dependency updates from other changes._
```
sh
export
KPATH
=
$HOME
/code/kubernetes
mkdir
-p
$KPATH
/src/k8s.io/kubernetes
...
...
@@ -183,10 +185,17 @@ godep save ./...
cd
$KPATH
/src/k8s.io/kubernetes
go get
-u
path/to/dependency
# Change code in Kubernetes accordingly if necessary.
godep update path/to/dependency
godep update path/to/dependency
/...
```
5) Before sending your PR, it's a good idea to sanity check that your Godeps.json file is ok by re-restoring:
`godep restore`
_If
`go get -u path/to/dependency`
fails with compilation errors, instead try
`go get -d -u path/to/dependency`
to fetch the dependencies without compiling them. This can happen when updating the cadvisor dependency._
5) Before sending your PR, it's a good idea to sanity check that your Godeps.json file is ok by running hack/verify-godeps.sh
_If hack/verify-godeps.sh fails after a
`godep update`
, it is possible that a transitive dependency was added or removed but not
updated by godeps. It then may be necessary to perform a
`godep save ./...`
to pick up the transitive dependency changes._
It is sometimes expedient to manually fix the /Godeps/godeps.json file to minimize the changes.
...
...
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