fix mod get command tests
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
This commit is contained in:
parent
a6a6037d01
commit
90d902fa77
@ -60,7 +60,7 @@ func read(f io.Reader) (*file, error) {
|
||||
|
||||
lines := nonEmptyLines(b)
|
||||
|
||||
var requires []*require
|
||||
requires := make([]*require, 0, len(lines))
|
||||
for _, line := range lines {
|
||||
split := strings.Split(line, " ")
|
||||
r, err := parseArgument(split[0])
|
||||
|
@ -18,7 +18,7 @@ func TestClone(t *testing.T) {
|
||||
require: require{
|
||||
cloneRepo: "github.com/tjovicic/dagger-modules",
|
||||
clonePath: "gcpcloudrun",
|
||||
version: "f4a5110b86a43871",
|
||||
version: "26a1d46d1b3c",
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -34,7 +34,7 @@ func TestClone(t *testing.T) {
|
||||
require: require{
|
||||
cloneRepo: "github.com/tjovicic/dagger-modules",
|
||||
clonePath: "gcpcloudrun",
|
||||
version: "v0.1",
|
||||
version: "v0.3",
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -42,7 +42,7 @@ func TestClone(t *testing.T) {
|
||||
require: require{
|
||||
cloneRepo: "github.com/dagger/test",
|
||||
clonePath: "",
|
||||
version: "v0.2",
|
||||
version: "main",
|
||||
},
|
||||
privateKeyFile: "./test-ssh-keys/id_ed25519_test",
|
||||
privateKeyPassword: "",
|
||||
|
Reference in New Issue
Block a user