Code Monkey home page Code Monkey logo

Comments (10)

zhsj avatar zhsj commented on August 16, 2024 1

gbp actually supports gbp clone vcsgit:golang-github-pkg-term. On https://go-team.pages.debian.net/workflow-changes.html, the origin proposal is to set postclone=origtargz in gbp.conf.

from dh-make-golang.

creekorful avatar creekorful commented on August 16, 2024

@anthonyfok @zhsj what are your opinions on this?

from dh-make-golang.

creekorful avatar creekorful commented on August 16, 2024

gbp actually supports gbp clone vcsgit:golang-github-pkg-term. On https://go-team.pages.debian.net/workflow-changes.html, the origin proposal is to set postclone=origtargz in gbp.conf.

Uh thanks, I should have paid more attention to the documentation.
I suppose adding the postclone directly in our gbp.conf template (in dh-make-golang) won't work?

func writeDebianGbpConf(dir string, dep14, pristineTar bool) error {

from dh-make-golang.

zhsj avatar zhsj commented on August 16, 2024

I suppose adding the postclone directly in our gbp.conf template (in dh-make-golang) won't work?

It shold work for new package.

from dh-make-golang.

creekorful avatar creekorful commented on August 16, 2024

I suppose adding the postclone directly in our gbp.conf template (in dh-make-golang) won't work?

It shold work for new package.

Didn't know if gbp do honor d/gbp.conf of the repository it is currently cloning, I'll try that way and will submit a PR if it works.
Thanks!

from dh-make-golang.

creekorful avatar creekorful commented on August 16, 2024

I suppose adding the postclone directly in our gbp.conf template (in dh-make-golang) won't work?

It shold work for new package.

Eh. It doesn't work. from https://manpages.debian.org/testing/git-buildpackage/gbp-clone.1.en.html:

Note that if you clone a repository that contains a hook configuration in debian/gbp.conf this hook will not be run automatically to prevent execution of untrusted code.

Does this clone command still make sense or should team member add postclone hook in their ~/gbp.conf?

from dh-make-golang.

zhsj avatar zhsj commented on August 16, 2024

😞 probably this is why it's never implemented although it's mentioned on the website.

I'm not sure what's the preferred way, the implementation for https://go-team.pages.debian.net/workflow-changes.html is in half-way for many years.

from dh-make-golang.

creekorful avatar creekorful commented on August 16, 2024

😞 probably this is why it's never implemented although it's mentioned on the website.

I'm not sure what's the preferred way, the implementation for https://go-team.pages.debian.net/workflow-changes.html is in half-way for many years.

In the meantime, I have submitted the PR adding the clone command. Let's see what the others think about that!

from dh-make-golang.

anthonyfok avatar anthonyfok commented on August 16, 2024

This is awesome @creekorful! And thank you @zhsj for the vcsgit: tip! I never knew that either!
Thank you both!

from dh-make-golang.

zhsj avatar zhsj commented on August 16, 2024

The vcsgit tip is on https://go-team.pages.debian.net/packaging.html#_git_setup_for_automatically_authenticating

And there is also a config snip to rewrite https -> ssh for pushing.

from dh-make-golang.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.