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

Inconsistent output between local run and action run #464

Open
obs-gh-alexlew opened this issue Jun 5, 2024 · 4 comments
Open

Inconsistent output between local run and action run #464

obs-gh-alexlew opened this issue Jun 5, 2024 · 4 comments

Comments

@obs-gh-alexlew
Copy link

When I run the same command with the goreleaser github action, it places files into the archives in different locations than when I run it locally. Both environments are running the same version, 1.26.2-pro.

For a concrete example, I have a file located at packaging/windows/connection/host_monitoring/metrics.yaml in my repository.

Goreleaser.yaml config snippet:

  - id: windows
    format: zip
    builds:
      - windows_build
    name_template: >-
      {{ .ProjectName }}_
      {{- title .Os }}_
      {{- if eq .Arch "amd64" }}x86_64
      {{- else if eq .Arch "386" }}i386
      {{- else }}{{ .Arch }}{{ end }}
      {{- if .Arm }}v{{ .Arm }}{{ end }}
    files:
      - src: "packaging/windows/connections/**"
        dst: "connections/"

The command I'm running both locally and in the github action is goreleaser release --prepare --clean --snapshot --verbose

Locally, I get this in the output

    • adding file: packaging/windows/connections/host_monitoring/metrics.yaml as connections/host_monitoring/metrics.yaml

In the github action with the same .goreleaser.yaml I get

    • adding file: packaging/windows/connections/host_monitoring/metrics.yaml as connections/metrics.yaml

Why would the same command with the same config produce inconsistent results?

@caarlos0
Copy link
Member

caarlos0 commented Jun 6, 2024

weird, are both the action and your local machine running linux? if not, which OSs are you using in each?

@obs-gh-alexlew
Copy link
Author

running macos locally, linux github action

@caarlos0
Copy link
Member

caarlos0 commented Jun 6, 2024

created this repo to try and repro it https://github.com/caarlos0-graveyard/gorel-dir-glob-repro

so far, got the same output on linux and macos with v2.0.0-pro (which is basically the same as v1.26.2-pro).

#
# linux:
 • adding file: dir/another/test as otherdir/test
 • adding file: dir/another/testetest as otherdir/testetest
#
# macos:
 • adding file: dir/another/test as otherdir/test
 • adding file: dir/another/testetest as otherdir/testetest

@caarlos0
Copy link
Member

caarlos0 commented Jun 6, 2024

on github action:

• adding file: dir/another/test as otherdir/test
• adding file: dir/another/testetest as otherdir/testetest

🤔

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

No branches or pull requests

2 participants