|
|
@ -22,7 +22,7 @@ require (
|
|
|
|
github.com/satori/go.uuid v1.2.0
|
|
|
|
github.com/satori/go.uuid v1.2.0
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
replace github.com/gobuffalo/packr => github.com/gobuffalo/packr v2.8.0 # now points at a different version
|
|
|
|
replace github.com/gobuffalo/packr => github.com/gobuffalo/packr v2.8.0
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Now when you build your go app, it will use `v2.8.0` of packr in place of the version specified in the `require` block.
|
|
|
|
Now when you build your go app, it will use `v2.8.0` of packr in place of the version specified in the `require` block.
|
|
|
@ -31,7 +31,7 @@ But what if you want to use it similarly to `npm link`, where you want to replac
|
|
|
|
|
|
|
|
|
|
|
|
Run the same command but omit the `@version` on the new package like so:
|
|
|
|
Run the same command but omit the `@version` on the new package like so:
|
|
|
|
|
|
|
|
|
|
|
|
```bash {hl_lines=[16]}
|
|
|
|
```bash {hl_lines=[15]}
|
|
|
|
# clone your own copy and make some edits at ~/projects/packr
|
|
|
|
# clone your own copy and make some edits at ~/projects/packr
|
|
|
|
$ cd ~/projects && git clone https://github.com/gobuffalo/packr
|
|
|
|
$ cd ~/projects && git clone https://github.com/gobuffalo/packr
|
|
|
|
$ cd ~/projects/riffraff && go mod edit -replace github.com/gobuffalo/packr=../packr
|
|
|
|
$ cd ~/projects/riffraff && go mod edit -replace github.com/gobuffalo/packr=../packr
|
|
|
|