Comments (6)
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.
@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.
Is this a public repo that I can clone and test locally with?
from attribution.
@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.
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.
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)
- Option to use annotated tags
- Litteral blocks are wrongly assumed to be python3
- Proposition: Make it clear that a `CHANGELOG` is handled by attribution
- Document all supported commands
- Automatically populate changelog/tag message
- Missing dep on toml? HOT 1
- Handle non-annotated tags
- attribution doesn't write __version__.py file
- Amend cargo files along with changelog
- Setup pessimist maybe? HOT 2
- "AttributeError: 'OutOfOrderTableProxy' object has no attribute 'append'" on `attribution init` HOT 1
- Option to skip writing version file HOT 1
- The `attribution init` command fails HOT 3
- Shortlog for first tag in repo is always wrong
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from attribution.