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

Pinned builds generate output files with filenames which are not known ahead of time #1759

Open
matthewdarwin opened this issue Oct 12, 2023 · 4 comments

Comments

@matthewdarwin
Copy link

When writing automation around pinned builds, it is not possible to know ahead of time what the name of the files produced will be. This means that automation has to use shell wildcards to get the filenames.

Would be better if the build outputted a file with the name in it or other way to avoid globbing which might result in the wrong thing being found in the future if the build process changes.

Current assets are named:

  • leap_5.0.0-rc2_amd64.deb
  • leap-5.0.0-rc2-x86_64.tar.zst
@enf-ci-bot enf-ci-bot moved this to Todo in Team Backlog Oct 12, 2023
@matthewdarwin matthewdarwin changed the title Pinned builds generate output files with unknown filenames Pinned builds generate output files with filenames which are not known ahead of time Oct 12, 2023
@bhazzard
Copy link

@matthewdarwin can you clarify what you mean by "a file with the name in it"?

@matthewdarwin
Copy link
Author

something I can do cat filename which returns 5.0.0-rc2

@bhazzard bhazzard removed the triage label Oct 17, 2023
@bhazzard bhazzard moved this from Todo to Icebox in Team Backlog Oct 17, 2023
@spoonincode
Copy link
Member

Not sure it helps your use case, but one thing you can do is to output the files in to a new/empty directory. -o outputdir instead of the -o . as given in instructions.

@bhazzard
Copy link

Spoke to Matthew today to better understand how he uses this. He uses the zipped output rather than the debian package to produce his own debian package. He does this because his custom debian contains some custom scripts (especially for start/stop).

Outputting to a specific directory is a sufficient workaround. It would be even better if the files weren't zipped, so he didn't have to ls | grep to get the file name of the zip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Icebox
Development

No branches or pull requests

4 participants