Skip to content

Commit

Permalink
fix: os package missing in Publish. Fixes #121
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Oct 31, 2019
1 parent d844d45 commit faab07c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions command/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import (
"github.com/spf13/cobra"
)

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

Expand Down
7 changes: 4 additions & 3 deletions dsl/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package dsl

import (
"log"
"os"

"github.com/pact-foundation/pact-go/types"
"github.com/hashicorp/logutils"
"github.com/pact-foundation/pact-go/types"
)

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

// Used to detect if logging has been configured.
logFilter *logutils.LevelFilter
logFilter *logutils.LevelFilter
}

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

0 comments on commit faab07c

Please sign in to comment.