mirror of
https://github.com/docker/compose.git
synced 2025-07-23 21:54:40 +02:00
Merge pull request #113 from chris-crone/appease-linter-main-test
Appease linter in main test
This commit is contained in:
commit
cd6d192d07
2
Makefile
2
Makefile
@ -62,7 +62,7 @@ cache-clear: ## Clear the builder cache
|
|||||||
@docker builder prune --force --filter type=exec.cachemount --filter=unused-for=24h
|
@docker builder prune --force --filter type=exec.cachemount --filter=unused-for=24h
|
||||||
|
|
||||||
lint: ## run linter(s)
|
lint: ## run linter(s)
|
||||||
docker run --rm -t -v $(PWD):/app -w /app golangci/golangci-lint:v1.27-alpine golangci-lint run ./...
|
docker run --rm -t -v $(PWD):/app -w /app golangci/golangci-lint:v1.27-alpine golangci-lint run --timeout 10m0s ./...
|
||||||
|
|
||||||
help: ## Show help
|
help: ## Show help
|
||||||
@echo Please specify a build target. The choices are:
|
@echo Please specify a build target. The choices are:
|
||||||
|
@ -44,6 +44,7 @@ var contextSetConfig = []byte(`{
|
|||||||
|
|
||||||
func TestDetermineCurrentContext(t *testing.T) {
|
func TestDetermineCurrentContext(t *testing.T) {
|
||||||
d, err := ioutil.TempDir("", "")
|
d, err := ioutil.TempDir("", "")
|
||||||
|
// nolint errcheck
|
||||||
defer os.RemoveAll(d)
|
defer os.RemoveAll(d)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
err = ioutil.WriteFile(filepath.Join(d, config.ConfigFileName), contextSetConfig, 0644)
|
err = ioutil.WriteFile(filepath.Join(d, config.ConfigFileName), contextSetConfig, 0644)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user