Repository navigation
Fix UV and Maven test failures - #3462
Conversation
…URL to prevent enrichment from leaked env vars
… correct server ID
9fb92ff to
5cf0159
Compare
…to avoid partial file bleed
| if err != nil { | ||
| return err | ||
| } | ||
| // urfave/cli v1 reorders defined flags to the front and parses them before UvCmd |
There was a problem hiding this comment.
You are right, it's not needed. When TestUvModuleOverrideOnPublish and TestUvServerIDFlag were failing, I assumed urfave/cli v1 was consuming --module and --server-id before UvCmd saw them — based on the reorderArgs behavior. So I added c.String("module") and c.String("server-id") as fallbacks.
But SkipFlagParsing: true was already on the UV command from the original PR. With that set, urfave/cli skips ALL flag parsing, which dumps everything straight into c.Args(). So c.String() always returns "", and the fallbacks never executed.
They were dead code. I have removed it
| if err != nil { | ||
| return fmt.Errorf("failed to extract server ID: %w", err) | ||
| } | ||
| if serverID == "" { |
There was a problem hiding this comment.
isnt serverID read in previous step why is extra check required and why is it set again by reading from flagvalue?
…y puts all args in c.Args()
masterbranch.go vet ./....go fmt ./....