Skip to content

[bake] Function false positives? #1586

Description

@eitsupi

I found buildx generating a strange error on GitHub Actions with buildx 0.10.0 https://github.com/actions/runner-images/blob/ubuntu22/20230122.1/images/linux/Ubuntu2204-Readme.md

https://github.com/rocker-org/rocker-versioned2/actions/runs/4067419070/jobs/7004745303#step:4:18

--------------------
  31 |           "dockerfile": "dockerfiles/geospatial-ubuntugis_4.2.2.Dockerfile",
  32 | >>>       "labels": {
  33 | >>>         "org.opencontainers.image.title": "rocker/geospatial (ubuntugis)",
  34 | >>>         "org.opencontainers.image.description": "Docker-based Geospatial toolkit for R, built on versioned Rocker image.",
  35 | >>>         "org.opencontainers.image.base.name": "docker.io/rocker/verse:4.2.2",
  36 | >>>         "org.opencontainers.image.version": "R-4.2.2"
  37 | >>>       },
  38 |           "tags": [
--------------------
ERROR: bakefiles/extra.docker-bake.json:32,17-37,8: Invalid expression; undefined function geospatial, and 1 other diagnostic(s)

It seems to recognize parentheses in a string as a function?
Since this file has not changed in months, I assume the workflow failed because of the buildx update.
https://github.com/rocker-org/rocker-versioned2/blob/23b6961dcc187b7290b35ae4434180dfb1fa7f24/bakefiles/extra.docker-bake.json

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions