Skip to content

Commit e6bf439

Browse files
committed
Suppress some new golangci warnings
1 parent df28c69 commit e6bf439

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ linters:
105105
paths:
106106
- test_data
107107
- third_party$
108+
- ^tree$
109+
- ^plz-out$
108110
- builtin$
109111
- examples$
110112
formatters:
@@ -122,5 +124,7 @@ formatters:
122124
paths:
123125
- test_data
124126
- third_party$
127+
- ^tree$
128+
- ^plz-out$
125129
- builtin$
126130
- examples$

src/remote/action.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (c *Client) buildCommand(target *core.BuildTarget, inputRoot *pb.Directory,
128128
}
129129
cmd, err := core.ReplaceSequences(state, target, cmd)
130130
return &pb.Command{
131-
Platform: c.targetPlatformProperties(target),
131+
Platform: c.targetPlatformProperties(target), //nolint:staticcheck
132132
Arguments: process.BashCommand(c.shellPath, commandPrefixBuilder.String()+cmd, state.Config.Build.ExitOnError),
133133
EnvironmentVariables: c.buildEnv(target, c.stampedBuildEnvironment(state, target, inputRoot, stamp, isTest || isRun), target.Sandbox),
134134
OutputPaths: outs,
@@ -161,7 +161,7 @@ func (c *Client) buildTestCommand(state *core.BuildState, target *core.BuildTarg
161161
}
162162
cmd, err := core.TestCommand(state, target)
163163
return &pb.Command{
164-
Platform: &pb.Platform{
164+
Platform: &pb.Platform{ //nolint:staticcheck
165165
Properties: []*pb.Platform_Property{
166166
{
167167
Name: "OSFamily",
@@ -182,7 +182,7 @@ func (c *Client) buildRunCommand(state *core.BuildState, target *core.BuildTarge
182182
return nil, fmt.Errorf("Target %s has no outputs, it can't be run with `plz run`", target)
183183
}
184184
return &pb.Command{
185-
Platform: c.platform,
185+
Platform: c.platform, //nolint:staticcheck
186186
Arguments: outs,
187187
EnvironmentVariables: c.buildEnv(target, core.GeneralBuildEnvironment(state), false),
188188
}, nil

0 commit comments

Comments
 (0)