Page MenuHomePhabricator

Support go-import meta tags
ClosedPublic

Authored by mmodell on Sep 12 2017, 1:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 2 2022, 5:11 PM
Unknown Object (File)
Oct 25 2022, 8:48 AM
Unknown Object (File)
Oct 7 2022, 2:24 AM
Unknown Object (File)
Aug 19 2022, 6:48 AM
Unknown Object (File)
Aug 12 2022, 3:22 PM
Unknown Object (File)
Jul 28 2022, 10:09 PM
Subscribers

Details

Reviewers
dduvall
Commits
rPHEX5dba7cbec09b: Support go-import meta tags
Patch without arc
git checkout -b D776 && curl -L https://phabricator.wikimedia.org/D776?download=true | git apply
Summary

GoGetMetaRepositoryExtension is a class which adds custom handling
of diffusion requests that include ?go-get=1 in the url.

To make this work, a custom extension mechanism was added to
DiffusionRepositoryController in D775

Test Plan

see test plan in D775

Depends-on: D775

Diff Detail

Repository
rPHEX phabricator-extensions
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This is awesome. Thanks @20after4!

src/diffusion/GoGetMetaRepositoryExtension.php
20

I may have given you bad info about the first content parameter. Looking at GitHub's implementation, it looks like it should be the full repo URL, e.g. content="phabricator.wikimedia.org/source/blubber git $uri".

update the go path and make sure to use https.

This revision is now accepted and ready to land.Sep 12 2017, 10:08 PM
This revision was automatically updated to reflect the committed changes.