gopack icon indicating copy to clipboard operation
gopack copied to clipboard

gp not working on Windows

Open half-ogre opened this issue 11 years ago • 3 comments

I'm trying to run gp version on Windows, in a repo that has a valid gopack.config that works on OS X, and I'm getting this error:

←[104m/// g o p a c k ///←[0m
←[31m[was expecting token %!s(toml.tokenType=4), but got %!s(toml.tokenType=3)]←[0m 

I tried this using a gp I built from both master (at 3b6a623c08b92458d7d48600270c6d5aeb05d508) and from the latest release (8c7f599978e337d49c845a4fbb6d8bdeaf4dca29).

Any ideas?

half-ogre avatar Jan 23 '14 23:01 half-ogre

What does your toml file look like?

technoweenie avatar Jan 23 '14 23:01 technoweenie

[deps.simpleuuid]
import = "github.com/streadway/simpleuuid"
commit = "6617b501e485b77e61b98cd533aefff9e258b5a7"

[deps.assert]
import = "github.com/bmizerany/assert"
commit = "e17e99893cb6509f428e1728281c2ad60a6b31e3"

[deps.toml]
import = "github.com/pelletier/go-toml"
commit = "34d60ec92f3fa0b142bc9318f125411a6495ca8d"

half-ogre avatar Jan 23 '14 23:01 half-ogre

Looks like this might be a problem with pelletier/go-toml itself. I cloned it and ran go test and got this:

C:\Users\half-ogre\Documents\GitHub\go-toml [master]> go test
--- FAIL: TestMissingFile (0.00 seconds)
        parser_test.go:263: Bad error message: open foo.toml: The system cannot find the file specified.
--- FAIL: TestParseFile (0.00 seconds)
        parser_test.go:11: Non-nil error: was expecting token %!s(toml.tokenType=4), but got %!s(toml.tokenType=3)
FAIL
exit status 1
FAIL    _/C_/Users/half-ogre/Documents/GitHub/go-toml   0.024s

half-ogre avatar Jan 23 '14 23:01 half-ogre