Skip to content

Commit

Permalink
merge branch 'pr-247'
Browse files Browse the repository at this point in the history
  vendor: switch to vndr for vendoring
  vendor: update all dependencies to latest version
  hack: remove opencontainers/runtime-tools patch
  hack: remove pkg/errors patch
  cmd: fix 'go vet' warnings

LGTMs: @cyphar
Closes #247
  • Loading branch information
cyphar committed Aug 2, 2018
2 parents 7bdbbe7 + 7d4abc6 commit 29f590a
Show file tree
Hide file tree
Showing 414 changed files with 65,755 additions and 14,461 deletions.
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ install: $(GO_SRC)
install.static: $(GO_SRC)
$(GO) install -v ${STATIC_BUILD_FLAGS} ${CMD}

.PHONY: update-deps
update-deps:
hack/vendor.sh

.PHONY: clean
clean:
rm -f umoci umoci.static umoci.cov*
Expand Down
6 changes: 1 addition & 5 deletions cmd/umoci/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,7 @@ func main() {
if err != nil {
return errors.Wrap(err, "parsing log level")
}

log.SetLevel(level)

if level == log.DebugLevel {
errors.Debug(true)
}
return nil
}

Expand Down Expand Up @@ -160,5 +155,6 @@ func main() {
log.Info("umoci encountered a permission error: maybe --rootless will help?")
}
log.Fatalf("%v", err)
log.Debugf("%+v", err)
}
}
4 changes: 2 additions & 2 deletions cmd/umoci/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,14 +300,14 @@ func parseIdmapOptions(meta *UmociMeta, ctx *cli.Context) error {
for _, uidmap := range ctx.StringSlice("uid-map") {
idMap, err := idtools.ParseMapping(uidmap)
if err != nil {
return errors.Wrapf(err, "failure parsing --uid-map %s: %s", uidmap)
return errors.Wrapf(err, "failure parsing --uid-map %s", uidmap)
}
meta.MapOptions.UIDMappings = append(meta.MapOptions.UIDMappings, idMap)
}
for _, gidmap := range ctx.StringSlice("gid-map") {
idMap, err := idtools.ParseMapping(gidmap)
if err != nil {
return errors.Wrapf(err, "failure parsing --gid-map %s: %s", gidmap)
return errors.Wrapf(err, "failure parsing --gid-map %s", gidmap)
}
meta.MapOptions.GIDMappings = append(meta.MapOptions.GIDMappings, idMap)
}
Expand Down
140 changes: 0 additions & 140 deletions hack/errors-0001-errors-add-Debug-function.patch

This file was deleted.

36 changes: 0 additions & 36 deletions hack/patch.sh

This file was deleted.

135 changes: 0 additions & 135 deletions hack/runtime-tools-0001-generate-remove-validate-dependency.patch

This file was deleted.

Loading

0 comments on commit 29f590a

Please sign in to comment.