hashicorp/packer · error

no matching version found in releases. In %v

Error message

no matching version found in releases. In %v

What it means

Plugin installation error from InstallLatest: the release list was parsed, but none of its versions satisfy the version constraint in required_plugins, so there is nothing to install from this server.

Source

Thrown at packer/plugin-getter/plugins.go:684

			err := fmt.Errorf("no release found")
			errs = multierror.Append(errs, err)
			log.Printf("[TRACE] %s", err.Error())
			continue
		}
		for _, release := range releases {
			v, err := goversion.NewVersion(release.Version)
			if err != nil {
				err := fmt.Errorf("could not parse release version %s. %w", release.Version, err)
				errs = multierror.Append(errs, err)
				log.Printf("[TRACE] %s, ignoring it", err.Error())
				continue
			}
			if pr.VersionConstraints.Check(v) {
				versions = append(versions, v)
			}
		}
		if len(versions) == 0 {
			err := fmt.Errorf("no matching version found in releases. In %v", releases)
			errs = multierror.Append(errs, err)
			log.Printf("[TRACE] %s", err.Error())
			continue
		}

		// Here we want to try every release in order, starting from the highest one
		// that matches the requirements. The system and protocol version need to
		// match too.
		sort.Sort(sort.Reverse(versions))
		log.Printf("[DEBUG] will try to install: %s", versions)

		for _, version := range versions {
			//TODO(azr): split in its own InstallVersion(version, opts) function

			outputFolder := filepath.Join(
				// Pick last folder as it's the one with the highest priority
				opts.PluginDirectory,
				// add expected full path

View on GitHub (pinned to eb36e3c3e4)

Solutions

  1. Loosen the version constraint in required_plugins (e.g. ">= 1.0.0")
  2. Check available versions on the plugin's releases page and pin one that exists
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at packer/plugin-getter/plugins.go:684 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of hashicorp/packer@eb36e3c3e4 (2026-09-05). Data as JSON: /api/errors/c5316d0cf534808e. Report an issue: GitHub.