Skip to content

Using the Dockerfile will always provide the latest version no matter the git branch specified in the build context #4010

Open
@gautaz

Description

@gautaz

CloudFormation Lint Version

N/A

What operating system are you using?

Nixos

Describe the bug

Building a Docker image with the following compose.yaml:

services:
  cfn-lint:
    build:
      context: https://github.com/aws-cloudformation/cfn-lint.git#v1.27.0

will result with the latest cfn-lint available on pypi.org and not the one specified in the context.

Expected behavior

I expect the build to provide the cfn-lint version that the branch of the repository would provide.

Reproduction template

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions