-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace
io/ioutil
with preferred packages (#430)
* replace: `io/ioutil` with preferred packages. Since Go 1.16, the `io/ioutil` package has been marked as deprecated. The functions provided by `io/ioutil` are now provided `io` or `os` packages. To get more details, please see https://pkg.go.dev/io/ioutil#pkg-overview * improve: Makefile with Phony targets. * update: commands in Makefile to be the same as commands on workflows.
- Loading branch information
1 parent
0a6a6fc
commit 637db4b
Showing
14 changed files
with
85 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,30 @@ | ||
all: deps build test | ||
|
||
deps: FORCE | ||
CGO_CFLAGS_ALLOW=-Xpreprocessor go get ./... | ||
.PHONY: deps | ||
deps: | ||
CGO_CFLAGS_ALLOW=-Xpreprocessor go get -v -t -d ./... | ||
|
||
build: FORCE | ||
CGO_CFLAGS_ALLOW=-Xpreprocessor go build ./vips | ||
.PHONY: build | ||
build: | ||
CGO_CFLAGS_ALLOW=-Xpreprocessor go build -v ./vips | ||
|
||
test: FORCE | ||
CGO_CFLAGS_ALLOW=-Xpreprocessor go test -v ./... | ||
.PHONY: test | ||
test: | ||
CGO_CFLAGS_ALLOW=-Xpreprocessor go test -v -coverprofile=profile.cov ./... | ||
|
||
FORCE: | ||
.PHONY: clean | ||
clean: | ||
go clean | ||
|
||
.PHONY: clean-cache | ||
clean-cache: | ||
# Purge build cache and test cache. | ||
# When something went wrong on building or testing, try this. | ||
-go clean -testcache | ||
-go clean -cache | ||
|
||
.PHONY: distclean | ||
distclean: | ||
-go clean -testcache | ||
-go clean -cache | ||
-git clean -f -x |
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
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
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
Oops, something went wrong.