mirror of https://github.com/docker/compose.git
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
|
||||
|
||||
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
|
||||
@echo Please specify a build target. The choices are:
|
||||
|
|
|
@ -44,6 +44,7 @@ var contextSetConfig = []byte(`{
|
|||
|
||||
func TestDetermineCurrentContext(t *testing.T) {
|
||||
d, err := ioutil.TempDir("", "")
|
||||
// nolint errcheck
|
||||
defer os.RemoveAll(d)
|
||||
require.NoError(t, err)
|
||||
err = ioutil.WriteFile(filepath.Join(d, config.ConfigFileName), contextSetConfig, 0644)
|
||||
|
|
Loading…
Reference in New Issue