Skip to content

Commit

Permalink
Fix not compiling on Mac OS
Browse files Browse the repository at this point in the history
Implement suggested edits in May 17 post at XimeraProject/homebrew-xake#3
  • Loading branch information
bfindell committed Aug 24, 2020
1 parent d298e4b commit 09cea48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion data.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/funny/binary"
// "regexp"
"github.com/golang/snappy"
"github.com/reiver/go-cast"
"os"
"strings"
"time"
Expand Down Expand Up @@ -73,7 +74,8 @@ func DownloadData() error {
defer t.Stop()

var bar *pb.ProgressBar
bar = pb.StartNew(int(resp.Size))
respSize, err := cast.Int64(resp.Size)
bar = pb.StartNew(int(respSize))
bar.ShowTimeLeft = true
bar.SetUnits(pb.U_BYTES)
bar.Start()
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
prefixed "github.com/kisonecat/logrus-prefixed-formatter"
"github.com/sirupsen/logrus"
//"github.com/tcnksm/go-latest"
"github.com/urfave/cli"
"gopkg.in/urfave/cli.v1"
"net/url"
"os"
"sort"
Expand All @@ -33,7 +33,7 @@ func main() {

app.Name = "xake"
app.Usage = "a build tool (make) for Ximera"
app.Version = "0.9.4"
app.Version = "0.9.4.1"

// Check to see if this is the newest version Humorously,
// go-latest depends on go>=1.7 because that was when "context"
Expand Down

0 comments on commit 09cea48

Please sign in to comment.