Skip to content

Remove bsdtar #15262

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

Closed
wants to merge 4 commits into from
Closed

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented Apr 3, 2021

bsdtar on ubuntu 18.04 does not support --no-xattrs. This means it is unsuitable for
use and is currently breaking release.

This PR simply removes the bsdtar use from .drone.yml and changes the Makefile to allow users to set
TAR="bsdtar --no-xattrs" in future should they wish to use that.

Fix #14578 (again)

Signed-off-by: Andrew Thornton art27@cantab.net

bsdtar on ubuntu 18.04 does not support no-xattrs. This means it is unsuitable for
use and is currently breaking release.

This PR simply removes the bsdtar use from drone but allows users to set
TAR="bsdtar --no-xattrs" in future should they wish to use that.

Fix go-gitea#14578 (again)

Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath zeripath added type/bug skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. labels Apr 3, 2021
@zeripath zeripath added this to the 1.15.0 milestone Apr 3, 2021
Copy link
Member

@6543 6543 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jup

@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Apr 3, 2021
@CL-Jeremy
Copy link
Contributor

#15256

@CL-Jeremy
Copy link
Contributor

I'm apologizing again here. I wouldn't have thought it could even bork twice on CI even after many testing by then, and npm 7 was another big issue I had no idea about before. If only there were some sort of guidance on creating a similar CI workflow on my own fork (which has CI enabled on drone.io) I would have discovered these stuff long before.

@silverwind
Copy link
Member

bsdtar removal is also included in #15273.

@6543
Copy link
Member

6543 commented Apr 6, 2021

Since two mentioned pulls are not ready jet i propose: mergebthis first & let the other pulls be followups that can be checked & reviewed without blocking things

@silverwind
Copy link
Member

silverwind commented Apr 6, 2021

I'd prefer #15273 to be merged but if @zeripath would port the bsdtar changes from it into here, we can merge this first.

silverwind added a commit to silverwind/gitea that referenced this pull request Apr 8, 2021
- Don't package node_modules in tarballs, they are not cross-platform
  anymore and npm cache should not be messed with directly. Instead,
  require an internet connection to rebuild the UI, which is not necessary
  in the general use case because prebuilt UI files are shipped in the
  public directory.
- Simplify the fomantic build and make the target phony. We don't need
  anything more for something that is rarely ran.
- Use regular tar again to build tarballs and add variable for excludes
- Disable annoying npm update notifications

Fixes: go-gitea#14578
Fixes: go-gitea#15256
Fixes: go-gitea#15262
techknowlogick pushed a commit that referenced this pull request Apr 9, 2021
- Don't package node_modules in tarballs, they are not cross-platform
  anymore and npm cache should not be messed with directly. Instead,
  require an internet connection to rebuild the UI, which is not necessary
  in the general use case because prebuilt UI files are shipped in the
  public directory.
- Simplify the fomantic build and make the target phony. We don't need
  anything more for something that is rarely ran.
- Use regular tar again to build tarballs and add variable for excludes
- Disable annoying npm update notifications

Fixes: #14578
Fixes: #15256
Fixes: #15262

Co-authored-by: 6543 <6543@obermui.de>
@zeripath zeripath deleted the fix-14578-part-2-no-xattrs branch April 9, 2021 08:00
@go-gitea go-gitea locked and limited conversation to collaborators May 13, 2021
AbdulrhmnGhanem pushed a commit to kitspace/gitea that referenced this pull request Aug 10, 2021
- Don't package node_modules in tarballs, they are not cross-platform
  anymore and npm cache should not be messed with directly. Instead,
  require an internet connection to rebuild the UI, which is not necessary
  in the general use case because prebuilt UI files are shipped in the
  public directory.
- Simplify the fomantic build and make the target phony. We don't need
  anything more for something that is rarely ran.
- Use regular tar again to build tarballs and add variable for excludes
- Disable annoying npm update notifications

Fixes: go-gitea#14578
Fixes: go-gitea#15256
Fixes: go-gitea#15262

Co-authored-by: 6543 <6543@obermui.de>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 1 This PR needs approval from one additional maintainer to be merged. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants