Commit Graph

362 Commits

Author SHA1 Message Date
Vincent Batts 555e4c9e5f
comment: typo
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-23 13:44:57 -04:00
Vincent Batts 79927ba184
Merge pull request #182 from vbatts/not_a_directory
walk: directory is expected to be walked. A file is not.
2022-04-23 13:42:46 -04:00
Vincent Batts 2627dbf5d7
Merge pull request #179 from vbatts/gofmt
*.go: updated go:build added via gofmt
2022-04-23 13:41:36 -04:00
Vincent Batts 5d7f6c36e0
walk: directory is expected to be walked. A file is not.
Fixes: #166

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-23 13:40:44 -04:00
Vincent Batts 94303e15af
*.go: updated go:build added via gofmt
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-23 12:59:26 -04:00
Vincent Batts b9356e6843
Merge pull request #177 from vbatts/lint
linting and adding check for staticcheck
2022-04-08 23:15:48 -04:00
Vincent Batts 0337cb91ea
keywordfunc: ignore ripemd160 for compat sake
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-08 23:04:27 -04:00
Vincent Batts dac969b14e
Makefile: staticcheck validation
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-08 23:03:04 -04:00
Vincent Batts 7b5bbd4eaa
keywords: tar.Xattrs is deprecated by PAXRecords
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-08 22:51:37 -04:00
Vincent Batts 3bc8e48538
*.go: go-staticcheck linting
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-08 22:51:37 -04:00
Vincent Batts 4760b77e54
Merge pull request #176 from vbatts/cyclo
Cyclomatic complexity
2022-04-08 22:39:27 -04:00
Vincent Batts 599ae15537
Makefile: check cyclomatic complexity
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-08 22:35:36 -04:00
Vincent Batts 53f42660ec
Merge pull request #175 from vbatts/remove_legacy
lookup: remove legacy lookup code
2022-04-08 22:31:24 -04:00
Vincent Batts 106c52de51
*_test.go: ignore cyclomatic complexity for test files
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-08 21:59:08 -04:00
Vincent Batts 1610f1a0c7
lookup: remove legacy lookup code
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-08 21:50:52 -04:00
Vincent Batts 7fed71e221
Merge pull request #173 from vbatts/compare-two-files
Compare two files
2022-04-04 18:17:07 -04:00
Vincent Batts 2d841d54bf
test: testing the double -f comparison
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-04 18:13:23 -04:00
Vincent Batts b5e683dfc9
main: compare two files with two -f flags
Fixes: #159

```shell
vbatts@fogel:~/src/github.com/vbatts/go-mtree$ ./gomtree -c -f foo
vbatts@fogel:~/src/github.com/vbatts/go-mtree$ ./gomtree -c -f bar -K sha256
vbatts@fogel:~/src/github.com/vbatts/go-mtree$ ./gomtree -f foo -f bar
"foo": unexpected path
".": keyword "time": expected 1649109728.228935367; got 1649109734.412959677
FATA[0000] manifest validation failed
vbatts@fogel:~/src/github.com/vbatts/go-mtree$ echo $?
1
```

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-04 18:04:16 -04:00
Vincent Batts bdace0aacf
main: --file flag can be repeated now
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-04 17:56:44 -04:00
Vincent Batts fc2975ed32
Merge pull request #172 from vbatts/change-flag-parser
main: switch to urfave/cli/v2
2022-04-04 16:12:32 -04:00
Vincent Batts 17687d8c29
main: switch to urfave/cli/v2
For now this is a drop in replacement for all the flags curently
implemented

Fixes: #171

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-04 16:06:48 -04:00
Vincent Batts bc8295f83e
compare: gofmt
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-04 14:57:29 -04:00
Vincent Batts c758611dce
Merge pull request #168 from vbatts/linting
Linting
2022-04-03 23:22:17 -04:00
Vincent Batts 1e7a86c787
Merge pull request #169 from vbatts/build_badge
README: github workflow badge
2022-04-03 23:20:29 -04:00
Vincent Batts f7c1f627aa
keyword_test: remove unused line
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-03 23:19:47 -04:00
Vincent Batts a867d30251
check_test: check the error
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-03 23:19:47 -04:00
Vincent Batts 6fb913af99
compare_test: remove unused code
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-03 23:19:47 -04:00
Vincent Batts 742dd407b4
main: len() works on nil now
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-03 23:19:46 -04:00
Vincent Batts b75d3dfcc8
README: github workflow badge
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-03 23:18:42 -04:00
Vincent Batts 7935b59876
Merge pull request #170 from vbatts/fix_build
*: rework the test tools, so no dep is ignored
2022-04-03 23:18:29 -04:00
Vincent Batts f32ba81c5e
*: rework the test tools, so no dep is ignored
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-03 23:15:40 -04:00
Vincent Batts 588282d9ad
github: fix the branch
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-03 22:53:03 -04:00
Vincent Batts 0b831d07ce
github: update the golang workflow
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-03 22:47:42 -04:00
Vincent Batts 4bc25af053
*.go: spelling typos
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-03 22:29:36 -04:00
Vincent Batts e1f0f056c7
README: markdown lint
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-03 22:24:36 -04:00
Vincent Batts 01744958cd
Merge pull request #163 from vbatts/go-updates
go: update deps, and vendored sources
2022-04-03 22:20:17 -04:00
Vincent Batts 642d3ed36e
Makefile: only build from vendored sources
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-03 22:05:27 -04:00
Vincent Batts 47b137db03
go: update deps, and vendored sources
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-03 22:05:18 -04:00
Vincent Batts 1adae81a54
Merge pull request #165 from vbatts/change-ci
Change ci
2021-09-14 10:06:35 -04:00
Vincent Batts 9de8611e15
README: change out badge of CI
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-09-14 10:00:24 -04:00
Vincent Batts d02dbc5725
trying out drone
This is lacking for a few reasons:
- multi-arch
- matrix of versions of golang

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-09-14 09:56:11 -04:00
Vincent Batts ae608839f1
long live travisCI
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-09-14 09:51:47 -04:00
Vincent Batts e8d42c3634
Merge pull request #161 from vbatts/go-mod
update and tidy go modules
2021-06-25 22:21:25 -04:00
Vincent Batts 8f06855856
vendor: update the vendored sources
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-06-25 22:19:26 -04:00
Vincent Batts 66fcc4c2f9
go.mod: tidy up
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-06-25 22:19:25 -04:00
Vincent Batts 8653fc588a
Merge pull request #162 from vbatts/github-action
github: add action for build and validation
2021-06-25 22:18:45 -04:00
Vincent Batts 0e749301e9
github: add action for build and validation
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-06-25 22:17:01 -04:00
Vincent Batts 4d95ad8fcf
go: update deps
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-01-25 13:47:02 -05:00
Vincent Batts 3d350a825e
Makefile: '[[' misinterpreted as a command
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-01-25 13:46:31 -05:00
Vincent Batts ced0ce3470
Merge pull request #160 from asellappen/master
Add poweron architecture ppc64le to travis build
2020-10-20 06:43:10 -04:00