~racb/git-ubuntu:rich-history-auth

Last commit made on 2023-07-11
Get this branch:
git clone -b rich-history-auth https://git.launchpad.net/~racb/git-ubuntu
Only Robie Basak can upload to this branch. If you are Robie Basak please log in for upload directions.

Branch merges

Branch information

Name:
rich-history-auth
Repository:
lp:~racb/git-ubuntu

Recent commits

8a489b3... by Robie Basak

importer: ignore rich history requiring auth

Rich history may be supplied in such a way that fetching it requires
authentication. For example, Launchpad does this when referring to a
repository that does not exist, since a private repository may become
visible following authentication.

For rich history purposes, we should ignore this case and ensure that
git does not prompt the user for authentication but instead treat the
case as "rich history not provided".

It does not seem worth arranging a test for this, since we would need to
fake a remote repository that requires authentication and we don't
currently have (and until now have not needed) a test fixture for that.
I have tested this implementation manually. It is unlikely to regress in
our code base. If it were to regress because a future version of git
changes behaviour, then behaviour would revert back to a soft failure,
and we would be able to detect and debug the problem from there.

LP: #1980982

fe21a9f... by Robie Basak

snap.sh: run snapcraft with sudo

A regression in snapcraft causes it to start failing with:

    Sorry, an error occurred in Snapcraft:
    [Errno 13] Permission denied: '/etc/apt/keyrings'

We run snapcraft with --destructive-mode. Presumably it used to use
sudo.

A workaround is to just run the whole thing with sudo ourselves.

See also my upstream report:
https://github.com/snapcore/snapcraft/issues/4225

1209559... by Robie Basak

snap.sh: do not generate gpg subkeys

snapcraft regressed in that it now rejects apt signing keys that have
subkeys. This is reported upstream, but the easiest thing to do for now
is work around by not generating them. This diverges from gpg's default,
but subkeys are not needed for apt signing keys anyway.

See my upstream reports:

https://github.com/snapcore/snapcraft/issues/4224
https://github.com/canonical/craft-archives/issues/83

8f0d8e5... by Steve Langasek

Initial support for 'gu-build' wrapper that wraps dpkg-buildpackage

This should eventually become a git-ubuntu subcommand once namespace is agreed

fd5eb67... by Steve Langasek

make the gu-build exit code match that of dpkg-buildpackage

d9c71e9... by Steve Langasek

drop stray unused variable left over from development

a4debcd... by Steve Langasek

Use the dowload cache for tarballs

Passing an empty cache dir to the launchpad download method pollutes the
working directory, causing the subsequent dpkg-buildpackage to fail.
Sidestep this bug and just use the tested code path instead.

d3dd3a3... by Robie Basak

doc: add keyring

c5d9196... by Robie Basak

doc: howtos on individual pages

5d891a9... by Steve Langasek

mk-build-deps doesn't like version 0

[rbasak] This seems like a bug in mk-build-deps. Filed
https://bugs.debian.org/1037016, but committing this as a workaround.