starting config parsing
This commit is contained in:
parent
3b3f0f5621
commit
efc5a3267f
@ -1,12 +1,12 @@
|
|||||||
# Install
|
# Install
|
||||||
Using go >= 1.12
|
Using go >= 1.12 so we have go modules.
|
||||||
|
|
||||||
```
|
```
|
||||||
$ go get
|
$ go get
|
||||||
$ go build
|
$ go build
|
||||||
$ go test
|
$ go test
|
||||||
$ ./tideliftcli scan ~/test
|
$ ./tideliftcli scan ~/test/good_fixtures
|
||||||
test/fixtures/yarn.lock, test/fixtures/Gemfile, test/fixtures/subdir/requirements.txt, test/fixtures/a/b/c/d/e/f/g/requirements.txt
|
yarn.lock, Gemfile, subdir/requirements.txt, a/b/c/d/e/f/g/requirements.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
func TestGetListOfGlobMatches(t *testing.T) {
|
func TestGetListOfGlobMatches(t *testing.T) {
|
||||||
//assert getManifestMatches gets all requirements.txt
|
//assert getManifestMatches gets all requirements.txt
|
||||||
os.Chdir("test/fixtures")
|
os.Chdir("test/good_config")
|
||||||
expected := []string{
|
expected := []string{
|
||||||
"subdir/requirements.txt",
|
"subdir/requirements.txt",
|
||||||
"a/b/c/d/e/f/g/requirements.txt",
|
"a/b/c/d/e/f/g/requirements.txt",
|
||||||
@ -29,7 +29,7 @@ func TestGetListOfManifestFilenames(t *testing.T) {
|
|||||||
"a/b/c/d/e/f/g/requirements.txt",
|
"a/b/c/d/e/f/g/requirements.txt",
|
||||||
"subdir/requirements.txt",
|
"subdir/requirements.txt",
|
||||||
}
|
}
|
||||||
got := getListOfManifestFilenames("test/fixtures")
|
got := getListOfManifestFilenames("test/good_config")
|
||||||
|
|
||||||
sort.Strings(expected)
|
sort.Strings(expected)
|
||||||
sort.Strings(got)
|
sort.Strings(got)
|
||||||
|
Loading…
Reference in New Issue
Block a user