Unverified Commit 93ae80cb authored by Cristian Maglie's avatar Cristian Maglie Committed by GitHub

[skip-changelog] upgrade go-paths-helper to 1.6.0 (#1310)

* upgrade go-paths-helper to 1.6.0

* Fixed tests for new go-path library release
parent aa61c4b1
......@@ -36,11 +36,11 @@ func tmpDirOrDie() string {
}
func TestGenBuildPath(t *testing.T) {
want := filepath.Join(os.TempDir(), "arduino-sketch-ACBD18DB4CC2F85CEDEF654FCCC4A4D8")
assert.Equal(t, want, builder.GenBuildPath(paths.New("foo")).String())
want := paths.TempDir().Join("arduino-sketch-ACBD18DB4CC2F85CEDEF654FCCC4A4D8")
assert.True(t, builder.GenBuildPath(paths.New("foo")).EquivalentTo(want))
want = filepath.Join(os.TempDir(), "arduino-sketch-D41D8CD98F00B204E9800998ECF8427E")
assert.Equal(t, want, builder.GenBuildPath(nil).String())
want = paths.TempDir().Join("arduino-sketch-D41D8CD98F00B204E9800998ECF8427E")
assert.True(t, builder.GenBuildPath(nil).EquivalentTo(want))
}
func TestEnsureBuildPathExists(t *testing.T) {
......
......@@ -4,7 +4,7 @@ go 1.14
require (
github.com/arduino/board-discovery v0.0.0-20180823133458-1ba29327fb0c
github.com/arduino/go-paths-helper v1.5.0
github.com/arduino/go-paths-helper v1.6.0
github.com/arduino/go-properties-orderedmap v1.3.0
github.com/arduino/go-timeutils v0.0.0-20171220113728-d1dd9e313b1b
github.com/arduino/go-win32-utils v0.0.0-20180330194947-ed041402e83b
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment