Skip to content

fix(DL3029): allow BUILDPLATFORM and TARGETPLATFORM variables#867

Merged
lorenzo merged 1 commit intohadolint:masterfrom
maxbrunet:fix/DL3029/BUILDPLATFORM-TARGETPLATFORM
Nov 7, 2022
Merged

fix(DL3029): allow BUILDPLATFORM and TARGETPLATFORM variables#867
lorenzo merged 1 commit intohadolint:masterfrom
maxbrunet:fix/DL3029/BUILDPLATFORM-TARGETPLATFORM

Conversation

@maxbrunet
Copy link
Copy Markdown
Contributor

Closes #861

What I did

Allowed BUILDPLATFORM and TARGETPLATFORM in FROM --plaform=

How I did it

Updated the existing rule to check if the value contains one of the variables. This is the lazy way without getting into complex regex.

How to verify it

I added new tests, but I have not been able to run anything. I tried to use nix-shell to get a development environment, but the compilation is never ending. This is also my first time touching Haskell code, so I barely understand a quarter of the changes I made 😅

@maxbrunet maxbrunet force-pushed the fix/DL3029/BUILDPLATFORM-TARGETPLATFORM branch from 3365a82 to f2f5c4c Compare August 23, 2022 21:10
@lorenzo
Copy link
Copy Markdown
Member

lorenzo commented Nov 7, 2022

thanks!

@lorenzo lorenzo merged commit c8e2f1d into hadolint:master Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DL3029: Improve BUILDPLATFORM/TARGETPLATFORM exceptions

2 participants