Skip to content

Commit

Permalink
Merge pull request #889 from nalind/json-iterator
Browse files Browse the repository at this point in the history
Switch from ffjson to json-iterator
  • Loading branch information
rhatdan authored May 7, 2021
2 parents b2a44b0 + 5ef1e9d commit b64e13a
Show file tree
Hide file tree
Showing 199 changed files with 11,496 additions and 27,003 deletions.
22 changes: 2 additions & 20 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,34 +41,16 @@ ifeq ($(shell $(GO) help mod >/dev/null 2>&1 && echo true), true)
endif

RUNINVM := vagrant/runinvm.sh
FFJSON := tests/tools/build/ffjson

default all: local-binary docs local-validate local-cross local-gccgo test-unit test-integration ## validate all checks, build and cross-build\nbinaries and docs, run tests in a VM

clean: ## remove all built files
$(RM) -f containers-storage containers-storage.* docs/*.1 docs/*.5

sources := $(wildcard *.go cmd/containers-storage/*.go drivers/*.go drivers/*/*.go pkg/*/*.go pkg/*/*/*.go) layers_ffjson.go images_ffjson.go containers_ffjson.go pkg/archive/archive_ffjson.go

sources := $(wildcard *.go cmd/containers-storage/*.go drivers/*.go drivers/*/*.go pkg/*/*.go pkg/*/*/*.go)
containers-storage: $(sources) ## build using gc on the host
$(GO) build $(MOD_VENDOR) -compiler gc $(BUILDFLAGS) ./cmd/containers-storage

layers_ffjson.go: $(FFJSON) layers.go
$(RM) $@
$(FFJSON) layers.go

images_ffjson.go: $(FFJSON) images.go
$(RM) $@
$(FFJSON) images.go

containers_ffjson.go: $(FFJSON) containers.go
$(RM) $@
$(FFJSON) containers.go

pkg/archive/archive_ffjson.go: $(FFJSON) pkg/archive/archive.go
$(RM) $@
$(FFJSON) pkg/archive/archive.go

binary local-binary: containers-storage

local-gccgo: ## build using gccgo on the host
Expand Down Expand Up @@ -118,7 +100,7 @@ install.tools:
make -C tests/tools

$(FFJSON):
make -C tests/tools build/ffjson
make -C tests/tools

install.docs: docs
make -C docs install
Expand Down
1 change: 0 additions & 1 deletion containers.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package storage

import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
Expand Down
Loading

0 comments on commit b64e13a

Please sign in to comment.