Git Product home page Git Product logo

Comments (7)

driusan avatar driusan commented on August 26, 2024

Annotated tags are a normal thing to be in pack files, we probably just never added support?

from dgit.

sirnewton01 avatar sirnewton01 commented on August 26, 2024

Yes, it looks like it. Check indexpack.go around line 711. There's no case for tags.

from dgit.

sirnewton01 avatar sirnewton01 commented on August 26, 2024

@driusan in order to add tag support for index pack, is it just a matter of putting OBJ_TAG in the switch statement here or is there special processing needed for tags?

case OBJ_COMMIT, OBJ_TREE, OBJ_BLOB:

from dgit.

driusan avatar driusan commented on August 26, 2024

I'm not sure.. I think there's a reasonably good chance it's just a matter of adding OBJ_TAG there, but I may be forgetting about something. You can try it and see.

from dgit.

sirnewton01 avatar sirnewton01 commented on August 26, 2024

Unfortunately, it's not that simple. Now the fetch tests begin failing with an index out of bounds on indexpack.go:452

Where can one learn more about how the indexing format here so that a more intelligent patch can be made?

from dgit.

driusan avatar driusan commented on August 26, 2024

The index format is defined in https://github.com/git/git/blob/master/Documentation/technical/pack-format.txt , but I doubt it'll help much. There's probably one or two other similar switch statements in dgit (or switching on their string equivalent) and not a problem with the index itself

from dgit.

driusan avatar driusan commented on August 26, 2024

This is causing Travis to fail now because one of the go get tests needs annotated tags.

ie in #254

go: finding golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e

go: golang.org/x/[email protected]: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /tmp/gopath.7857/pkg/mod/cache/vcs/b44680b3c3708a854d4c89f55aedda0b223beb8d9e30fba969cefb5bd9c1e843: exit status 2:

	remote: Sending approximately 15.27 MiB ...

remote: Counting objects: 33, done

remote: Finding sources: 100% (29/29)

Indexing objects: 12% (3650/30685)panic: Unhandled type in IndexPack: tag

	

	goroutine 1 [running]:

	github.com/driusan/dgit/git.IndexPack(0xc0000963c0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)

		/home/travis/gopath/src/github.com/driusan/dgit/git/indexpack.go:711 +0x1e39

	github.com/driusan/dgit/git.IndexAndCopyPack(0xc0000963c0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)

		/home/travis/gopath/src/github.com/driusan/dgit/git/indexpack.go:730 +0x7a

	github.com/driusan/dgit/git.fetchPackDone(0xc0000963c0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x100000000000000, 0x889b80, 0xc00012e100, ...)

		/home/travis/gopath/src/github.com/driusan/dgit/git/fetchpack.go:294 +0xc9c

	github.com/driusan/dgit/git.FetchPack(0xc0000963c0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x100000000000000, 0x7ffe9ce75519, 0x6, ...)

		/home/travis/gopath/src/github.com/driusan/dgit/git/fetchpack.go:67 +0x336

	github.com/driusan/dgit/git.Fetch(0xc0000963c0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x100000000000000, 0x7ffe9ce75519, ...)

		/home/travis/gopath/src/github.com/driusan/dgit/git/fetch.go:33 +0x1d6

	github.com/driusan/dgit/cmd.Fetch(0xc0000963c0, 0xc000096140, 0x4, 0x4, 0x0, 0x0)

		/home/travis/gopath/src/github.com/driusan/dgit/cmd/fetch.go:54 +0x2c7

	main.main()

		/home/travis/gopath/src/github.com/driusan/dgit/main.go:228 +0x4aeb

go: error loading module requirements

Go get failed

The command "./go-get-modules-tests.sh" exited with 1.

from dgit.

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.