Code Monkey home page Code Monkey logo

Comments (3)

nishanths avatar nishanths commented on August 20, 2024

see 6c17229

with the change, running:

go get go.avalanche.space/lyft/auth

will first fetch lyft/auth/index.html, follow the meta tag to lyft/index.html, and fetch the entire lyft repo into $GOPATH/go.avalanche.space/lyft. Not sure if that's how fetching a subpackage is supposed to work, but it's less worse than what it was doing previously.

from metaimport.

nishanths avatar nishanths commented on August 20, 2024

also how gogs gogs/gogs#1878 handles this

from metaimport.

nishanths avatar nishanths commented on August 20, 2024

rsc.io/pdf's subpackages also instruct go get to fetch the entire parent repo:

curl rsc.io/pdf/pdfpasswd -i -L
HTTP/1.1 302 Found
Location: https://rsc.io/pdf/pdfpasswd
X-Cloud-Trace-Context: 42761d84344b1d3e827d208466b75489
Date: Sat, 11 Nov 2017 00:26:14 GMT
Content-Type: text/html
Server: Google Frontend
Content-Length: 0

HTTP/2 200
cache-control: public, max-age=300
content-type: text/html; charset=utf-8
x-cloud-trace-context: 034048d5f27e3df36a3e28323e2992d8
date: Sat, 11 Nov 2017 00:26:14 GMT
server: Google Frontend
content-length: 400

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="go-import" content="rsc.io/pdf git https://github.com/rsc/pdf">
<meta http-equiv="refresh" content="0; url=https://godoc.org/rsc.io/pdf/pdfpasswd">
</head>
<body>
Redirecting to docs at <a href="https://godoc.org/rsc.io/pdf/pdfpasswd">godoc.org/rsc.io/pdf/pdfpasswd</a>...
</body>
</html>

from metaimport.

Related Issues (1)

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.