{"record":{"id":"bcc36e412af15afa","repo":"hashicorp/packer","slug":"your-configuration-file-describes-some-legacy-comp","errorCode":null,"errorMessage":"Your configuration file describes some legacy components: \n%sPacker does not support these mono-component plugins anymore.\nPlease refer to our Installing Plugins docs for an overview of how to manage installation of local plugins:\nhttps://developer.hashicorp.com/packer/docs/plugins/install-plugins","messagePattern":"Your configuration file describes some legacy components: \n(.+?)Packer does not support these mono-component plugins anymore\\.\nPlease refer to our Installing Plugins docs for an overview of how to manage installation of local plugins:\nhttps://developer\\.hashicorp\\.com/packer/docs/plugins/install-plugins","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"config.go","lineNumber":62,"sourceCode":"\n\t\treturn paths\n\t}\n\n\tvar pluginPaths []string\n\tpluginPaths = append(pluginPaths, extractPaths(c.RawProvisioners)...)\n\tpluginPaths = append(pluginPaths, extractPaths(c.RawBuilders)...)\n\tpluginPaths = append(pluginPaths, extractPaths(c.RawPostProcessors)...)\n\n\tif len(pluginPaths) == 0 {\n\t\treturn nil\n\t}\n\n\tcomponentList := &strings.Builder{}\n\tfor _, path := range pluginPaths {\n\t\tfmt.Fprintf(componentList, \"- %s\\n\", path)\n\t}\n\n\treturn fmt.Errorf(\"Your configuration file describes some legacy components: \\n%s\"+\n\t\t\"Packer does not support these mono-component plugins anymore.\\n\"+\n\t\t\"Please refer to our Installing Plugins docs for an overview of how to manage installation of local plugins:\\n\"+\n\t\t\"https://developer.hashicorp.com/packer/docs/plugins/install-plugins\",\n\t\tcomponentList.String())\n}\n\n// This is a proper packer.BuilderFunc that can be used to load packersdk.Builder\n// implementations from the defined plugins.\nfunc (c *config) StartBuilder(name string) (packersdk.Builder, error) {\n\tlog.Printf(\"Loading builder: %s\\n\", name)\n\treturn c.Plugins.Builders.Start(name)\n}\n\n// This is a proper implementation of packer.HookFunc that can be used\n// to load packersdk.Hook implementations from the defined plugins.\nfunc (c *config) StarHook(name string) (packersdk.Hook, error) {\n\tlog.Printf(\"Loading hook: %s\\n\", name)\n\treturn c.Plugins.Client(name).Hook()","sourceCodeStart":44,"sourceCodeEnd":80,"githubUrl":"https://github.com/hashicorp/packer/blob/eb36e3c3e48a036f3e8cc94087636ee72e1303c9/config.go#L44-L80","documentation":"Startup error from Packer's config loader: the HCL/JSON configuration declares components that embed a local plugin `path` (legacy mono-component plugins), which Packer no longer supports. The message lists each offending component path.","triggerScenarios":"Thrown at config.go:62 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the `path` fields from component blocks and rely on packer init / required_plugins to fetch plugins","Install the needed plugins locally via `packer plugins install` and reference them by type instead of path"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"eb36e3c3e48a036f3e8cc94087636ee72e1303c9","analyzedAt":"2026-09-05T13:20:43.127Z","contentChangedAt":"2026-09-05T13:20:43.127Z","schemaVersion":2},"datasetVersion":"2026-09-12T17:17:11.597Z"}