Skip to content

Commit e409c4b

Browse files
committed
v2 is not backwards compatible
A Go module should be backwards compatible with all versions sharing its import path. This was broken recently with the v2.0.0 tag. The code was moved into a v2 directory so everyone will import the same path, whether they are using GOPATH or Go Modules: import "github.com/ZachtimusPrime/Go-Splunk-HTTP/splunk/v2"
1 parent b298e35 commit e409c4b

File tree

9 files changed

+6
-6
lines changed

9 files changed

+6
-6
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ before_script:
2020
script:
2121
# - go test -v -race ./... # run go tests
2222
# - $HOME/gopath/bin/goveralls -service=travis-ci # run code coverage
23-
- cd splunk/
23+
- cd splunk/v2
2424
- go build

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ A simple and lightweight HTTP Splunk logging package for Go. Instantiates a logg
1414
## Installation ##
1515

1616
```bash
17-
go get "github.com/ZachtimusPrime/Go-Splunk-HTTP/splunk"
17+
go get "github.com/ZachtimusPrime/Go-Splunk-HTTP/splunk/v2"
1818
```
1919

2020
## Usage ##
@@ -26,7 +26,7 @@ For example:
2626
```go
2727
package main
2828

29-
import "github.com/ZachtimusPrime/Go-Splunk-HTTP/splunk"
29+
import "github.com/ZachtimusPrime/Go-Splunk-HTTP/splunk/v2"
3030

3131
func main() {
3232

go.mod

Lines changed: 0 additions & 3 deletions
This file was deleted.

splunk/v2/go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/ZachtimusPrime/Go-Splunk-HTTP/splunk/v2
2+
3+
go 1.14
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)