Skip to content

Commit faab07c

Browse files
committed
fix: os package missing in Publish. Fixes #121
1 parent d844d45 commit faab07c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

command/version.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import (
66
"github.com/spf13/cobra"
77
)
88

9-
var version = "v1.0.3"
9+
var version = "v1.0.4"
1010
var cliToolsVersion = "1.65.1"
1111
var versionCmd = &cobra.Command{
1212
Use: "version",
1313
Short: "Print the version number of Pact Go",
1414
Long: `All software has versions. This is Pact Go's`,
1515
Run: func(cmd *cobra.Command, args []string) {
16-
fmt.Sprintf("Pact Go CLI %s, using CLI tools version %s", version, cliToolsVersion)
16+
fmt.Printf("Pact Go CLI %s, using CLI tools version %s", version, cliToolsVersion)
1717
},
1818
}
1919

dsl/publish.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package dsl
22

33
import (
44
"log"
5+
"os"
56

6-
"github.com/pact-foundation/pact-go/types"
77
"github.com/hashicorp/logutils"
8+
"github.com/pact-foundation/pact-go/types"
89
)
910

1011
// PactFile is a simple representation of a Pact file to be able to
@@ -30,7 +31,7 @@ type Publisher struct {
3031
LogLevel string
3132

3233
// Used to detect if logging has been configured.
33-
logFilter *logutils.LevelFilter
34+
logFilter *logutils.LevelFilter
3435
}
3536

3637
// Publish sends the Pacts to a broker, optionally tagging them
@@ -66,4 +67,4 @@ func (p *Publisher) setupLogging() {
6667
log.SetOutput(p.logFilter)
6768
}
6869
log.Println("[DEBUG] pact setup logging")
69-
}
70+
}

0 commit comments

Comments
 (0)