You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't retrieve the latest version of a base image using the digitalocean-image datasource because the name field of those images only have the version, not the name.
Reproduction Steps
The following code is getting the error Error: Datasource.Execute failed: No matching image found:
It looks like the field name only contains the version and the arch of the image on those of type base (or distribution, according to this datasource).
This is a response to get the images from the DigitalOcean API:
Note that images with type=base only has a version on the name field, so I can't get (for example) the latest Debian image because the datasource only get images based on the name field (and there is no "debian" or any other name there)
bhean
changed the title
Wrong name of base images (type=distributon) retrieved by datasource
Wrong name of base images (type=distribution) retrieved by datasource
Feb 17, 2025
Overview of the Issue
I can't retrieve the latest version of a base image using the
digitalocean-image
datasource because the name field of those images only have the version, not the name.Reproduction Steps
The following code is getting the error
Error: Datasource.Execute failed: No matching image found
:It looks like the field
name
only contains the version and the arch of the image on those of typebase
(ordistribution
, according to this datasource).This is a response to get the images from the DigitalOcean API:
Result of that command (I removed redundant parts to keep it small):
Note that images with
type=base
only has a version on thename
field, so I can't get (for example) the latest Debian image because the datasource only get images based on thename
field (and there is no "debian" or any other name there)Plugin and Packer version
Packer: v1.12.0
Plugin: packer-plugin-digitalocean_v1.4.1_x5.0_linux_amd64
Operating system and Environment details
OS: I'm using the latest Packer version from the official Packer Docker container, based on Alpine: https://hub.docker.com/layers/hashicorp/packer/1.12/images/sha256-120faa4b376acc849f0cb19c7847cdccf49a78fd7ee1e2dbb992601e33d4b746
Log Fragments and crash.log files
Build log with
PACKER_LOG=1
:The text was updated successfully, but these errors were encountered: