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