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

dh-make-golang make should delete vendorized files from the debian/sid branch #151

Open
CyrilBrulebois opened this issue Jan 4, 2021 · 3 comments
Labels
Milestone

Comments

@CyrilBrulebois
Copy link

With one of my first package that contains some components below vendor/, support for it was quite encouraging:

  • debian/copyright gets a Files-Excluded directive
  • debian/watch exploits that information, triggering a repack when downloading the source tarball.

Two parts are missing:

  • debian/changelog could get a +ds1 automatically.
  • the relevant files should be deleted from the debian/sid branch automatically.

I wasn't sure about the last part, but @zhsj seemed to agree that leaving excluded files in the packaging branch is not the desired result.

An example can be obtained with:

dh-make-golang make -type l github.com/nxadm/tail
@zhsj zhsj added the bug label Jan 4, 2021
@CyrilBrulebois
Copy link
Author

Complementary task: for this package, I had the upstream/1.4.5 tag automatically created (upstream is now at 1.4.6, but the story would be the same). It would probably be best to prune all relevant files from that upstream branch, and tag upstream/1.4.5+ds1 afterwards.

This was spotted by the test_the_archive test in Salsa's CI pipelines.

@CyrilBrulebois
Copy link
Author

Interestingly, the upstream clean-up happened for another package, possibly because that was a snapshot instead of a released version/tag?

$ dh-make-golang make -type l github.com/hinshun/vt10x && golang-github-hinshun-vt10x/ && git show --stat upstream | tail -1
 474 files changed, 201932 deletions(-)

@CyrilBrulebois
Copy link
Author

Hopefully the last comment for today, for golang-github-hinshun-vt10x: upstream/0.0_git20180809.d55458d is the upstream tag that was created, while it should probably be upstream/0.0_git20180809.d55458d+ds1, unless we consider we're not actually repacking upstream source (there's no upstream tarball after all), even if we're cleaning files from the Git repository… For golang-github-hinshun-vt10x's initial upload, I think I'll keep +ds1 to reflect the fact we're pruning files.

@anthonyfok anthonyfok added this to the v0.7.0 milestone Jan 5, 2022
@anthonyfok anthonyfok modified the milestones: v0.7.0, v0.8.0 Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants