Skip to content

Commit

Permalink
add package creation notes
Browse files Browse the repository at this point in the history
  • Loading branch information
whyrusleeping committed Feb 6, 2017
1 parent d42ba4b commit 4403a1a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,18 @@ nicer for development). You can change paths back from their gx paths with:
gx-go rewrite --undo
```

A few other notes:

- When publishing, make sure that you don't have any duplicate dependencies
(different hash versions of the same package). You can check this with `gx
deps dupes`
- Make sure that you arent missing any dependencies, With your dependencies
written in gx form, run `gx-go dvcs-deps`. If it outputs any package that is
not the package you are publishing, you should probably look at importing
that package to gx as well.
- Make sure the tests pass with gx rewritten deps. `gx test` will write gx deps
and run `go test` for you.

## NOTE:
It is highly recommended that you set your `GOPATH` to a temporary directory when running import.
This ensures that your current go packages are not affected, and also that fresh versions of
Expand Down

0 comments on commit 4403a1a

Please sign in to comment.