-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from swagatbora90/update-go-firecracker
Update go version
- Loading branch information
Showing
8 changed files
with
66 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,38 +31,34 @@ else | |
endif | ||
|
||
build-in-docker: | ||
docker run --rm -v $(CURDIR):/firectl --workdir /firectl golang:1.14 make | ||
docker run --rm -v $(CURDIR):/firectl --workdir /firectl golang:1.22 make | ||
|
||
test: | ||
go test -v ./... | ||
|
||
GO_MINOR_VERSION = $(shell go version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f2) | ||
deps = \ | ||
$(BINPATH)/golangci-lint \ | ||
$(BINPATH)/git-validation \ | ||
$(BINPATH)/ltag | ||
|
||
$(BINPATH)/ltag: | ||
@if [ $(GO_MINOR_VERSION) -lt 16 ]; then \ | ||
GOBIN=$(BINPATH) GO111MODULE=on go get github.com/kunalkushwaha/[email protected]; \ | ||
else \ | ||
GOBIN=$(BINPATH) GO111MODULE=on go install github.com/kunalkushwaha/[email protected]; \ | ||
fi | ||
|
||
$(BINPATH)/git-validation: | ||
@if [ $(GO_MINOR_VERSION) -lt 16 ]; then \ | ||
GOBIN=$(BINPATH) GO111MODULE=on go get github.com/vbatts/[email protected]; \ | ||
else \ | ||
GOBIN=$(BINPATH) GO111MODULE=on go install github.com/vbatts/[email protected]; \ | ||
fi | ||
lint: $(deps) | ||
$(BINPATH)/ltag -t ./.headers -excludes "tools $(SUBMODULES)" -check -v | ||
$(BINPATH)/git-validation -run DCO,short-subject -range HEAD~5..HEAD | ||
$(BINPATH)/golangci-lint run | ||
|
||
$(BINPATH)/golangci-lint: | ||
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(BINPATH) v1.53.3 | ||
GOBIN=$(BINPATH) go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.58.2 | ||
$(BINPATH)/golangci-lint --version | ||
|
||
lint: $(BINPATH)/ltag $(BINPATH)/git-validation $(BINPATH)/golangci-lint | ||
$(BINPATH)/ltag -v -t ./.headers -check | ||
$(BINPATH)/git-validation -q -run DCO,short-subject -range HEAD~5..HEAD | ||
$(BINPATH)/golangci-lint run | ||
$(BINPATH)/git-validation: | ||
GOBIN=$(BINPATH) go install github.com/vbatts/[email protected] | ||
|
||
$(BINPATH)/ltag: | ||
GOBIN=$(BINPATH) go install github.com/kunalkushwaha/[email protected] | ||
|
||
clean: | ||
go clean | ||
rm -rf $(BINPATH) | ||
|
||
install: | ||
install -o root -g root -m755 -t $(INSTALLPATH) firectl | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,50 @@ | ||
module github.com/firecracker-microvm/firectl | ||
|
||
go 1.14 | ||
go 1.21 | ||
|
||
require ( | ||
github.com/firecracker-microvm/firecracker-go-sdk v1.0.0 | ||
github.com/go-openapi/strfmt v0.21.2 | ||
github.com/jessevdk/go-flags v1.5.0 | ||
github.com/sirupsen/logrus v1.9.3 | ||
) | ||
|
||
require ( | ||
github.com/PuerkitoBio/purell v1.1.1 // indirect | ||
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect | ||
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect | ||
github.com/containerd/fifo v1.0.0 // indirect | ||
github.com/containernetworking/cni v1.0.1 // indirect | ||
github.com/containernetworking/plugins v1.0.1 // indirect | ||
github.com/go-openapi/analysis v0.21.2 // indirect | ||
github.com/go-openapi/errors v0.20.2 // indirect | ||
github.com/go-openapi/jsonpointer v0.19.5 // indirect | ||
github.com/go-openapi/jsonreference v0.19.6 // indirect | ||
github.com/go-openapi/loads v0.21.1 // indirect | ||
github.com/go-openapi/runtime v0.24.0 // indirect | ||
github.com/go-openapi/spec v0.20.4 // indirect | ||
github.com/go-openapi/swag v0.21.1 // indirect | ||
github.com/go-openapi/validate v0.22.0 // indirect | ||
github.com/go-stack/stack v1.8.1 // indirect | ||
github.com/google/uuid v1.3.0 // indirect | ||
github.com/hashicorp/errwrap v1.0.0 // indirect | ||
github.com/hashicorp/go-multierror v1.1.1 // indirect | ||
github.com/josharian/intern v1.0.0 // indirect | ||
github.com/mailru/easyjson v0.7.7 // indirect | ||
github.com/mitchellh/mapstructure v1.4.3 // indirect | ||
github.com/oklog/ulid v1.3.1 // indirect | ||
github.com/opentracing/opentracing-go v1.2.0 // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/tidwall/pretty v1.0.1 // indirect | ||
github.com/vishvananda/netlink v1.1.1-0.20210330154013-f5de75959ad5 // indirect | ||
github.com/vishvananda/netns v0.0.0-20210104183010-2eb08e3e575f // indirect | ||
go.mongodb.org/mongo-driver v1.8.3 // indirect | ||
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect | ||
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect | ||
golang.org/x/text v0.3.7 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
) | ||
|
||
// Workaround for indirect dependency no longer being available. | ||
// https://github.com/containerd/containerd/issues/9969 | ||
exclude github.com/mitchellh/osext v0.0.0-20151018003038-5e2d6d41470f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters