Skip to content

Commit 81d2667

Browse files
committed
Fix go get path in README.md and panic help
Using: go get github.com/maruel/panicparse/cmd/pp will retrieve 1.5.0. But now that 2.0.0 is in the sumdb, I can't remove it anymore, hence a new 2.0.1 release that fix the path in the README and panic's help.
1 parent 04b01a7 commit 81d2667

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ panicparse helps make sense of Go crash dumps:
1616

1717
## Features
1818

19-
See [v2.0.0 blog post](https://maruel.ca/post/panicparse-2.0.0/).
19+
See [v2.0.1 blog post](https://maruel.ca/post/panicparse-2.0.1/).
2020

2121
* **New in v2.0.0!**: Full go module support.
2222
* **New in v2.0.0!**: Race detector support.
@@ -50,7 +50,7 @@ Ruel](https://github.com/maruel) and
5050

5151
## Installation
5252

53-
go get github.com/maruel/panicparse/cmd/pp
53+
go get github.com/maruel/panicparse/v2/cmd/pp
5454

5555

5656
## Usage
@@ -162,7 +162,7 @@ you may be running the _Perl PAR Packager_ instead of panicparse.
162162
You have two choices, either you put `$GOPATH/bin` at the beginning of `$PATH`
163163
or use long name `panicparse` with:
164164

165-
go get github.com/maruel/panicparse
165+
go get github.com/maruel/panicparse/v2
166166

167167
then using `panicparse` instead of `pp`:
168168

cmd/panic/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
// It is a tool to help test pp, it is used in its unit tests.
88
//
99
// To install, run:
10-
// go install github.com/maruel/panicparse/cmd/panic
10+
// go install github.com/maruel/panicparse/v2/cmd/panic
1111
// panic -help
1212
// panic str |& pp
1313
//
1414
// Some panics require the race detector with -race:
15-
// go install -race github.com/maruel/panicparse/cmd/panic
15+
// go install -race github.com/maruel/panicparse/v2/cmd/panic
1616
// panic race |& pp
1717
//
1818
// To use with inlining disabled, build with -gcflags '-l' like:
19-
// go install -gcflags '-l' github.com/maruel/panicparse/cmd/panic
19+
// go install -gcflags '-l' github.com/maruel/panicparse/v2/cmd/panic
2020
package main
2121

2222
// To add a new panic stack signature, add it to types type below, keeping the
@@ -112,7 +112,7 @@ func recurse(i int) {
112112
func panicRaceDisabled(name string) {
113113
help := "'panic %s' can only be used when built with the race detector.\n" +
114114
"To build, use:\n" +
115-
" go install -race github.com/maruel/panicparse/cmd/panic\n"
115+
" go install -race github.com/maruel/panicparse/v2/cmd/panic\n"
116116
fmt.Fprintf(stdErr, help, name)
117117
}
118118

@@ -314,7 +314,7 @@ var types = map[string]struct {
314314
// https://github.com/golang/go/issues/20588
315315
//
316316
// Repro:
317-
// go install -race github.com/maruel/panicparse/cmd/panic; panic asleep
317+
// go install -race github.com/maruel/panicparse/v2/cmd/panic; panic asleep
318318
var mu sync.Mutex
319319
mu.Lock()
320320
mu.Lock()

0 commit comments

Comments
 (0)