From 51f4ad51843476b1cd0c5e55c351aeef7fd52ee4 Mon Sep 17 00:00:00 2001 From: Adam Veldhousen Date: Fri, 20 Mar 2020 16:24:03 -0500 Subject: [PATCH] remove comment and fix line highlight --- content/posts/go-mod-edit-replace.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/posts/go-mod-edit-replace.md b/content/posts/go-mod-edit-replace.md index fd84df7..4815954 100755 --- a/content/posts/go-mod-edit-replace.md +++ b/content/posts/go-mod-edit-replace.md @@ -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