Coder Social home page Coder Social logo

Repo state unknown error about attribution HOT 6 CLOSED

omnilib avatar omnilib commented on August 28, 2024
Repo state unknown error

from attribution.

Comments (6)

amyreese avatar amyreese commented on August 28, 2024

Based on your shell prompt, I'm guessing that your existing version tags don't have a "v" prefix on them. attribution is expecting them, and is failing to get about your tags because it's looking for the wrong names rather than recording what the exact tag name was and looking that up.

from attribution.

bastienboutonnet avatar bastienboutonnet commented on August 28, 2024

@jreese thanks for getting back to me on this.
I think this might not be the case as my tags are v-prefixed here's the output of git tags -l

v0.0.0-alpha.0
v0.0.0-alpha.1
v0.0.0-alpha.10
v0.0.0-alpha.2
v0.0.0-alpha.3
v0.0.0-alpha.4
v0.0.0-alpha.5
v0.0.0-alpha.6
v0.0.0-alpha.7
v0.0.0-alpha.8
v0.0.0-alpha.9
v0.0.0-beta.0

Am I missing something?

from attribution.

amyreese avatar amyreese commented on August 28, 2024

Is this a public repo that I can clone and test locally with?

from attribution.

bastienboutonnet avatar bastienboutonnet commented on August 28, 2024

@jreese yes absolutely. Thanks a lot for going out of your way with this. The repo is here: https://github.com/bitpicky/dbt-sugar

from attribution.

amyreese avatar amyreese commented on August 28, 2024

So the issue is specifically with your v0.0.0-alpha.10 tag and how it's stored in your git repo. You might want to consider re-tagging it and see if that resolves the issue.

Compare git's knowledge of alpha.10:

(.venv) jreese@mordin ~/workspace/dbt-sugar main  » git cat-file tag v0.0.0-alpha.10
fatal: git cat-file v0.0.0-alpha.10: bad file

(.venv) jreese@mordin ~/workspace/dbt-sugar main  ‹128› » git show v0.0.0-alpha.10 | head
commit 22a1c7881871eb76aa951b70b725eb9baea713bf
Author: Bastien Boutonnet <[email protected]>
Date:   Sun Mar 28 17:54:57 2021 +0200

    Bump version: 0.0.0-alpha.9 → 0.0.0-alpha.10

diff --git a/.bumpversion.cfg b/.bumpversion.cfg
index f8a46ee..40798a4 100644
--- a/.bumpversion.cfg
+++ b/.bumpversion.cfg

Versus alpha.9:

(.venv) jreese@mordin ~/workspace/dbt-sugar main  » git cat-file tag v0.0.0-alpha.9
object b586358ad00e801a78b3e8ae1a03d5704df45f11
type commit
tag v0.0.0-alpha.9
tagger Bastien Boutonnet <[email protected]> 1616523574 +0100

Bump version: 0.0.0-alpha.8 → 0.0.0-alpha.9

(.venv) jreese@mordin ~/workspace/dbt-sugar main  » git show v0.0.0-alpha.9 | head
tag v0.0.0-alpha.9
Tagger: Bastien Boutonnet <[email protected]>
Date:   Tue Mar 23 19:19:34 2021 +0100

Bump version: 0.0.0-alpha.8 → 0.0.0-alpha.9

commit b586358ad00e801a78b3e8ae1a03d5704df45f11
Author: Bastien Boutonnet <[email protected]>
Date:   Tue Mar 23 19:19:31 2021 +0100

I'm guessing that alpha.10 is not an annotated tag? Eg, running just git tag <name> instead of git tag -a <name> and supplying a message. If that's the case, I would suggest retagging it with git tag --force -a v0.0.0-alpha.10 v0.0.0-alpha.10. That resolved the issue on my local checkout.

from attribution.

bastienboutonnet avatar bastienboutonnet commented on August 28, 2024

Oh that's interesting. I rarely add descriptions but I think I created the tag on a branch and then merged that branch with squash. Maybe it messed things up... Ok I think I'll try in the next build :) thanks a lot for looking into this. Really appreciate it!

from attribution.

Related Issues (15)

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.