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
ae608839f1
long live travisCI
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-09-14 09:51:47 -04:00
e8d42c3634
Merge pull request #161 from vbatts/go-mod
...
update and tidy go modules
2021-06-25 22:21:25 -04:00
8f06855856
vendor: update the vendored sources
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-06-25 22:19:26 -04:00
66fcc4c2f9
go.mod: tidy up
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-06-25 22:19:25 -04:00
8653fc588a
Merge pull request #162 from vbatts/github-action
...
github: add action for build and validation
2021-06-25 22:18:45 -04:00
0e749301e9
github: add action for build and validation
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-06-25 22:17:01 -04:00
4d95ad8fcf
go: update deps
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-01-25 13:47:02 -05:00
3d350a825e
Makefile: '[[' misinterpreted as a command
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-01-25 13:46:31 -05:00
ced0ce3470
Merge pull request #160 from asellappen/master
...
Add poweron architecture ppc64le to travis build
2020-10-20 06:43:10 -04:00
Ubuntu
f2de0fb1a3
Add poweron architecture ppc64le to travis build
2020-10-19 11:38:42 +00:00
e34c4f37a7
version: bump master back to -dev
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2020-04-30 18:38:31 -04:00
2e000987c5
version: release v0.5.0
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2020-04-30 18:37:21 -04:00
d6df813dbc
Merge pull request #155 from tych0/fix-new
...
compare: return the right delta
2020-04-02 14:31:40 -04:00
Tycho Andersen
f0ebb0ab5b
compare: return the right delta
...
Heh, copypasta error. Amazing I'm the first person who noticed this :)
Signed-off-by: Tycho Andersen <tycho@tycho.ws>
2020-04-02 12:03:07 -06:00
2b899d3655
Merge pull request #157 from vbatts/vendor
...
updating modules and vendor
2020-04-02 12:35:34 -04:00
ba9a13f463
updating modules and vendor
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2020-04-02 12:31:06 -04:00
f849a9299a
Merge pull request #156 from vbatts/go_versions
...
ci: fix dep failure, add go versions
2020-04-02 12:22:37 -04:00
6912c50eda
ci: fix dep failure, add go versions
...
including new version of golang. Switch to go1.14 for linting.
and remove the build of `dep`. We're on go modules for vendoring now.
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2020-04-02 12:08:52 -04:00
7ce6c9c696
vendor: switch to go modules and update deps
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-11-12 09:28:03 -05:00
8b6de6073c
Merge pull request #154 from vbatts/dep
...
vendor: convert from glide to dep
2019-01-22 04:47:25 +01:00
4885a690ee
travis: drop go1.8
...
with the update to `golang.org/x/crypto`, the commit
c7dcf104e3
depends on a stdlib package introduced in go1.9
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-01-21 22:39:43 -05:00
656cd41822
Makefile: don't use glide for testable paths
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-01-21 12:06:24 -05:00
9be05594fe
vendor: update sources
...
```shell
dep ensure -update
```
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-01-21 11:03:35 -05:00
94a6c46bde
vendor: convert from glide to dep
...
```shell
go get -u -v github.com/golang/dep
dep init
```
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-01-21 11:01:52 -05:00
134ba041d7
Merge pull request #152 from tych0/compare-same
...
compare: add CompareSame()
2019-01-17 13:42:23 -05:00
Tycho Andersen
d8d43cd807
compare: add CompareSame()
...
I have a use case where I'd like to know the files that are the same in the
tree, as well as the differences.
I could do this with a separate walk and excluding the paths that were
different, but since mtree is already doing all of this for me, it makes
sense to include it here. I've added a new function so that the behavior
stays the same for existing users of Compare(), since I assume mostly this
will be slower given that most files stay the same. I'd be happy to merge
it into one, though.
Signed-off-by: Tycho Andersen <tycho@tycho.ws>
2019-01-14 14:12:08 -07:00
53e54ea2f7
Merge pull request #151 from vbatts/clean.00
...
check: remove unused TarCheck(), for Compare()
2018-12-10 11:36:56 -05:00
40f4ce8108
check: remove unused TarCheck(), for Compare()
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2018-12-10 11:26:12 -05:00
abf4d54fb2
readme: travis build status
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2018-11-15 15:08:59 -05:00
367008df78
Merge pull request #149 from cyphar/casync-mtree-compare
...
entry: rework e.Path() handling for casync-mtree
2018-11-15 15:04:02 -05:00
4ae4c48dc0
Merge pull request #150 from vbatts/golint
...
travis, golint, and versions of golang!
2018-11-08 11:56:25 -05:00
acd3fa49ea
travis, golint, and versions of golang!
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2018-11-08 11:50:04 -05:00
Aleksa Sarai
4766cebac0
entry: rework e.Path() handling for casync-mtree
...
The core issue comes about when you consider a trivial example of a path
like "./README". This path is lexically equivalent within mtree to
"README", but a simple string comparison will yield the wrong result.
Instead you need to lexically clean the path first (filepath.Clean isn't
enough here -- you need to prepend a "/" and then do filepath.Clean).
In gomtree we generate spec files in the same style of FreeBSD's
mtree(8), so you would be very hard-pressed to find an example of such
an inconsistency. However casync's mtree implementation does not
generate leading "./" for root paths which results in "missing" entries.
The implementation of CleanPath was written by me for umoci originally,
then later I copied it to runc for other uses, and now I've copied it
here. Since I'm the sole author I'm effectively dual-licensing it under
this project's license to avoid having to relicense go-mtree for no good
reason (or deal with the multiple-license hassle).
Signed-off-by: Aleksa Sarai <asarai@suse.de>
2018-09-15 00:18:31 +10:00
37d776ac40
cli.test: colorize the success/failure
...
updating and adding vendored source to do it
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2018-08-20 07:57:14 -04:00
03270d3d9e
*.go: clean up variable names
2018-08-19 18:25:48 -04:00
2f374a383e
Make: install tools target
2018-08-13 23:03:28 -04:00
f34a2e0d2b
test/cli: and a newline
2018-08-13 21:56:19 -04:00
dce9629991
test/cli: add a success message
2018-08-13 21:54:55 -04:00
68a6d43233
test/cli: fixup for supporting OSX
2018-08-13 21:20:31 -04:00
1bcf4de08f
Merge pull request #148 from cyphar/compare-improvements
...
compare: allow nil newDh and oldDh
2018-05-31 12:30:39 -07:00
Aleksa Sarai
be3abf053a
compare: allow nil newDh and oldDh
...
This allows people to create synthetic InodeDeltas, which is something
that umoci would like to be able to do in order to nicely create 'umoci
insert' layers.
Signed-off-by: Aleksa Sarai <asarai@suse.de>
2018-05-16 20:06:43 +10:00
Aleksa Sarai
ffb4a05860
travis: update Go version
...
Signed-off-by: Aleksa Sarai <asarai@suse.de>
2018-05-16 20:06:42 +10:00
16da0f86ee
Merge pull request #147 from vbatts/casync
...
casync: adding a casync style mtree
2017-12-13 14:26:12 -05:00
144242ef1e
casync: adding a casync style mtree
...
This parses fine, but does not validate currently
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-12-13 14:20:29 -05:00
005af4d18f
Merge pull request #144 from wking/lowercase-sirupsen
...
vendor: Replace Sirupsen/logrus with sirupsen/logrus
2017-11-03 15:49:21 -04:00
W. Trevor King
72ac04e7ca
vendor: Replace Sirupsen/logrus with sirupsen/logrus
...
With:
$ git mv vendor/github.com/{S,s}irupsen
$ sed -i 's/Sirupsen/sirupsen/g' $(git grep -l Sirupsen)
catching up with the upstream lowercasing [1,2,3,4]. Because of the
compatibility issues discussed in [3], some consumers may prefer to
use the old uppercase version until they have time to update their
other Logrus consumers to the new lowercase form.
[1]: https://github.com/sirupsen/logrus/blame/v1.0.3/README.md#L6
[2]: https://github.com/sirupsen/logrus/pull/384
[3]: https://github.com/sirupsen/logrus/issues/570#issuecomment-313933276
[4]: https://github.com/sirupsen/logrus/issues/553
2017-11-03 12:19:19 -07:00
03983e2cdc
version: master back to -dev
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-10-28 22:30:23 -04:00
de69569d25
version: release 0.4.2
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-10-28 22:29:59 -04:00
2352d84626
Merge pull request #143 from vbatts/sha512256
...
keyword: include sha-2 512/256
2017-10-28 22:28:22 -04:00