{"record":{"id":"42a31387192225c7","repo":"tsenart/vegeta","slug":"vegeta-dump-has-been-deprecated-and-succeeded-by-t","errorCode":null,"errorMessage":"vegeta dump has been deprecated and succeeded by the vegeta encode command","messagePattern":"vegeta dump has been deprecated and succeeded by the vegeta encode command","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"dump.go","lineNumber":9,"sourceCode":"package main\n\nimport (\n\t\"fmt\"\n)\n\nfunc dumpCmd() command {\n\treturn command{fn: func([]string) error {\n\t\treturn fmt.Errorf(\"vegeta dump has been deprecated and succeeded by the vegeta encode command\")\n\t}}\n}\n","sourceCodeStart":1,"sourceCodeEnd":12,"githubUrl":"https://github.com/tsenart/vegeta/blob/cf5811269046c672a604b1eb352204d30f16ae4a/dump.go#L1-L12","documentation":"The `vegeta dump` command has been removed and permanently returns this deprecation error; its functionality was replaced by `vegeta encode`. Any invocation of dump fails with this message by design.","triggerScenarios":"Running `vegeta dump` in any form on a vegeta version that ships the deprecated stub command (dump.go returns the error unconditionally).","commonSituations":"Scripts or CI pipelines migrated from old vegeta versions that still call `vegeta dump`; documentation or tutorials predating the encode command.","solutions":["Replace `vegeta dump` with `vegeta encode`, specifying `-from`/`-to` encodings as needed.","Update scripts/CI to call `vegeta encode` (e.g. `vegeta encode -from=gob -to=json`).","Pin an older vegeta version only as a last resort if the legacy dump behavior is truly required."],"exampleFix":"// before\nvegeta dump -from=gob -to=json < results.gob > results.json\n// after\nvegeta encode -from=gob -to=json < results.gob > results.json","handlingStrategy":"fallback","validationCode":"if cmd == \"dump\" {\n    cmd = \"encode\" // dump is deprecated; map to encode\n}","typeGuard":null,"tryCatchPattern":"out, err := exec.Command(\"vegeta\", \"dump\", args...).CombinedOutput()\nif err != nil && strings.Contains(string(out), \"deprecated\") {\n    out, err = exec.Command(\"vegeta\", \"encode\", args...).CombinedOutput()\n}","preventionTips":["Audit scripts for `vegeta dump` after upgrading vegeta.","Standardize on `vegeta encode` for all format conversion.","Pin vegeta versions in CI so deprecations surface in a controlled upgrade."],"tags":["cli","deprecation","migration"],"backgroundTag":"command-deprecated","analyzedSha":"cf5811269046c672a604b1eb352204d30f16ae4a","analyzedAt":"2026-08-31T11:04:20.464Z","schemaVersion":2},"datasetVersion":"2026-08-31T14:17:45.589Z"}