Skip to content

Releases: rogpeppe/gohack

v1.0.2

01 Apr 15:38
7a96da1
Compare
Choose a tag to compare
main: fix definition and implementation of relative GOHACK (#49)

rogpeppe has a far sharper brain than me and pointed out a major issue
with the previous implementation: that we hadn't actually implemented
a relative value of GOHACK relative to the main module.

v1.0.1

29 Mar 14:56
Compare
Choose a tag to compare
 Allow relative paths in GOHACK env var (#45)

Prior to this change, we were using `filepath.Join()` to derive a
 replacement for the module dir. But this is not enough to
 support relative directories, as `Join()` cleans the resulting path,
 removing any `"./"` prefix (which is needed by the replace drective when
 using a local directory).

 This change adds the `"./"` prefix if the user specified it in the GOHACK
 env var.

 Note that relative parent directory `".."` is not cleaned by
 `filepath.Join()`, so we do not need to cater to this case, and an added
 test proves that this works.

 fixes #44

v1.0.0-alpha.2

25 Oct 16:01
0ab12bb
Compare
Choose a tag to compare
v1.0.0-alpha.2 Pre-release
Pre-release

v1.0.0-alpha.2

v1.0.0-alpha.1

25 Oct 12:39
dad0e3a
Compare
Choose a tag to compare
v1.0.0-alpha.1 Pre-release
Pre-release

v1.0.0-alpha.1