File tree Expand file tree Collapse file tree 10 files changed +83
-0
lines changed
testdata/nestedassets/commits Expand file tree Collapse file tree 10 files changed +83
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,13 @@ func TestRepo(t *testing.T) {
53
53
"should flag a package as changed" ,
54
54
AllFiles : true ,
55
55
},
56
+ RepoTest {
57
+ TestdataFolder : "nestedassets" ,
58
+ Name : "change in files that are not go source files, nested" ,
59
+ Description : "A change to a file that is not a go source file\n " +
60
+ "should flag a sub package as changed" ,
61
+ AllFiles : true ,
62
+ },
56
63
}
57
64
58
65
tests .Run (t )
Original file line number Diff line number Diff line change
1
+ module github.com/utilitywarehouse/modules
2
+
3
+ go 1.17
4
+
5
+ require github.com/sirupsen/logrus v1.8.1
6
+
7
+ require (
8
+ golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 // indirect
9
+ )
Original file line number Diff line number Diff line change
1
+ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
2
+ github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
3
+ github.com/magefile/mage v1.10.0 h1:3HiXzCUY12kh9bIuyXShaVe529fJfyqoVM42o/uom2g =
4
+ github.com/magefile/mage v1.10.0 /go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A =
5
+ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
6
+ github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
7
+ github.com/sirupsen/logrus v1.8.0 h1:nfhvjKcUMhBMVqbKHJlk5RPrrfYr/NMo3692g0dwfWU =
8
+ github.com/sirupsen/logrus v1.8.0 /go.mod h1:4GuYW9TZmE769R5STWrRakJc4UqQ3+QQ95fyz7ENv1A =
9
+ github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w =
10
+ github.com/stretchr/testify v1.2.2 /go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs =
11
+ golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 h1:YyJpGZS1sBuBCzLAR1VEpK193GlqGZbnPFnPV/5Rsb4 =
12
+ golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
Original file line number Diff line number Diff line change
1
+ CREATE TABLE users (
2
+ id SERIAL PRIMARY KEY ,
3
+ username VARCHAR (255 ) UNIQUE NOT NULL ,
4
+ password VARCHAR (255 ) NOT NULL ,
5
+ email VARCHAR (255 ) UNIQUE NOT NULL ,
6
+ created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
7
+ );
Original file line number Diff line number Diff line change
1
+ package sub
2
+
3
+ import (
4
+ "github.com/sirupsen/logrus/hooks/writer"
5
+ )
6
+
7
+ type A struct {
8
+ writer.Hook
9
+ }
Original file line number Diff line number Diff line change
1
+ github.com/utilitywarehouse/modules/sub
Original file line number Diff line number Diff line change
1
+ module github.com/utilitywarehouse/modules
2
+
3
+ go 1.17
4
+
5
+ require github.com/sirupsen/logrus v1.8.1
6
+
7
+ require (
8
+ golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 // indirect
9
+ )
Original file line number Diff line number Diff line change
1
+ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
2
+ github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
3
+ github.com/magefile/mage v1.10.0 h1:3HiXzCUY12kh9bIuyXShaVe529fJfyqoVM42o/uom2g =
4
+ github.com/magefile/mage v1.10.0 /go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A =
5
+ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
6
+ github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
7
+ github.com/sirupsen/logrus v1.8.0 h1:nfhvjKcUMhBMVqbKHJlk5RPrrfYr/NMo3692g0dwfWU =
8
+ github.com/sirupsen/logrus v1.8.0 /go.mod h1:4GuYW9TZmE769R5STWrRakJc4UqQ3+QQ95fyz7ENv1A =
9
+ github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w =
10
+ github.com/stretchr/testify v1.2.2 /go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs =
11
+ golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 h1:YyJpGZS1sBuBCzLAR1VEpK193GlqGZbnPFnPV/5Rsb4 =
12
+ golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
Original file line number Diff line number Diff line change
1
+ CREATE TABLE users (
2
+ id SERIAL PRIMARY KEY ,
3
+ username VARCHAR (255 ) UNIQUE NOT NULL ,
4
+ password VARCHAR (255 ) NOT NULL ,
5
+ email VARCHAR (255 ) UNIQUE NOT NULL ,
6
+ created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ,
7
+ updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
8
+ );
Original file line number Diff line number Diff line change
1
+ package sub
2
+
3
+ import (
4
+ "github.com/sirupsen/logrus/hooks/writer"
5
+ )
6
+
7
+ type A struct {
8
+ writer.Hook
9
+ }
You can’t perform that action at this time.
0 commit comments