Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken github action for latest ? #118

Open
laluka opened this issue Jul 31, 2024 · 2 comments
Open

Broken github action for latest ? #118

laluka opened this issue Jul 31, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@laluka
Copy link

laluka commented Jul 31, 2024

Hello there,
I maintain the LaluBuntu linux distro (offensive work), and it's relying on packer & github actions for daily builds (docker mostly). We live on latest as it's a rolling distro, and this morning, things broke in the latest github action, any chance you could have a look ? :)
Cheers ! 🌹

Expected Behavior

packer version should work :)

Current Behavior

packer version doesn't work anymore :(

image

Steps to Reproduce

Simply add the packer setup workflow

[...]
      - name: Checkout
        uses: actions/checkout@v4

      - name: Setup `packer`
        uses: hashicorp/setup-packer@main
        id: setup
        env:
          PACKER_LOG: "0"
          PRODUCT_VERSION: latest

Environment

Have a nice day ! 🌈

@laluka laluka added the bug Something isn't working label Jul 31, 2024
@ksatirli
Copy link
Member

Thanks for reporting this, @laluka!

I tried to replicate this, because the error message is a bit confusing.

Here's my workflow output: https://github.com/ksatirli/packer-test/actions/runs/10179709241/job/28156033146

And here's the associated workflow: https://github.com/ksatirli/packer-test/blob/main/.github/workflows/packer-main.yml

I think the problem is that you're attempting to write to an out location that doesn't exist (as listed in your screenshot), but I'm unable to replicate this easily.

Can you provide more information?

@ksatirli ksatirli self-assigned this Jul 31, 2024
@laluka
Copy link
Author

laluka commented Aug 1, 2024

Well, that's... Unexpected!
So, my report wasn't full, I thought the command failed as packer wasn't in the current PATH, but it actually is, the missing part was...

image

Now I wonder why github-action broke this behavior, as writing to stdout isn't too scary.. 🤷

It works on my end with a regular file, would you mind trying with /dev/stdout to see if this can still be reproduced ?

Thanks for the quick response, and have a nice day ! 🌹

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants