-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
add a directory prefix gitea-src-VERSION
to release-tar-file
#19396
add a directory prefix gitea-src-VERSION
to release-tar-file
#19396
Conversation
Thanks for this PR, could you upload a tar generated with the above? I'd love to pass it to downstream folk (nixos, FreeBSD/OpenBSD,and others) who package gitea using this generated file so we can ensure that if it breaks their packaging it can be resolved prior to a release. |
Packaged tag v1.16.5 by applying the proposed changes to the Makefile. |
@jklippel thanks for uploading that sample, I've reached out to the *BSD folk and am awaiting feedback, as for nix I've done some preliminary testing and the build will need some changes if/when this is merged. @wxiaoguang I think this is the better PR because it looks for bsdtar vs tar. |
However it does nothing with bsdtar, there is Either we should stop the make with an error when there is bsdtar, or we should use bsdtar with |
I'm in favour of using |
I am not a BSD user 😂 I think we can assume that almost all bsdtar have the |
gitea-src-1.16.5.tar.gz |
Do not package tar file such that the sources are unpacked into the current working directory. Use a directory prefix instead on creating the tar file. Fixes: #19066
FWIW- I don't maintain FreeBSD's port, but this change will in-fact simplify the port slightly by aligning to what the ports framework typically expects from a distfile. This is likely a net -1 line change for us, and not one that's going to cause any problems. |
gitea-src-VERSION
to release-tar-file
The version on macOS should be supported for release creation and it does not have If everything fails, we could just require GNU tar on macOS via |
macOS tar does have the
Why are you reading a FreeBSD 6.0 document, which was released in 2005 ....... FreeBSD since 8 (since 2009) does have it. https://www.freebsd.org/cgi/man.cgi?query=bsdtar&apropos=0&sektion=1&manpath=FreeBSD+8.0-RELEASE&arch=default&format=html |
Ah, I missed it
It was the first result that came up in google. It's fine if the argument was added in later versions. |
Co-authored-by: silverwind <me@silverwind.io>
Attached files built with branch and latest commit (93e4cf8): |
Codecov Report
@@ Coverage Diff @@
## main #19396 +/- ##
==========================================
- Coverage 47.42% 47.42% -0.01%
==========================================
Files 951 951
Lines 132360 132327 -33
==========================================
- Hits 62767 62750 -17
+ Misses 62032 62022 -10
+ Partials 7561 7555 -6
Continue to review full report at Codecov.
|
* giteaofficial/main: Add a new menu in file view to open blame view and fix blame view select range bug (go-gitea#19500) Fix two UI bugs: JS error in imagediff.js, 500 error in diff/compare.tmpl [skip ci] Updated translations via Crowdin Improve Stopwatch behavior (go-gitea#18930) Pass gitRepo down to GetRawDiff, since its used for main repo and wiki (go-gitea#19461) Use queue instead of memory queue in webhook send service (go-gitea#19390) add a directory prefix `gitea-src-VERSION` to release-tar-file (go-gitea#19396)
…tea#19396) Use a directory prefix instead on creating the tar file. Fixes: go-gitea#19066
Do not package tar file such that the sources are unpacked into the
current working directory. Use a directory prefix instead on creating
the tar file.
Fixes: #19066
Prior to this PR the gitea src tar.gz would extract to the current directory. Users requiring the previous behaviour should use tar options as appropriate.