Browse Source

remove comment and fix line highlight

master
Adam Veldhousen 2 months ago
parent
commit
51f4ad5184
Signed by: adam <adamveld12@gmail.com> GPG Key ID: 6DB29003C6DD1E4B
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      content/posts/go-mod-edit-replace.md

+ 2
- 2
content/posts/go-mod-edit-replace.md View File

@@ -22,7 +22,7 @@ require (
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.
@@ -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:

```bash {hl_lines=[16]}
```bash {hl_lines=[15]}
# clone your own copy and make some edits at ~/projects/packr
$ cd ~/projects && git clone https://github.com/gobuffalo/packr
$ cd ~/projects/riffraff && go mod edit -replace github.com/gobuffalo/packr=../packr


Loading…
Cancel
Save