Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag/version validation #106

Closed
jhass opened this issue May 12, 2016 · 3 comments
Closed

Tag/version validation #106

jhass opened this issue May 12, 2016 · 3 comments

Comments

@jhass
Copy link
Member

jhass commented May 12, 2016

Following will/crystal-pg#41 I was thinking, maybe shards should refuse to install (during shards install) when after the git checkout $version the version field in the shard.yml doesn't match the earlier $version? That way a shard that has a mismatch there would be unusable for that version. The validation would only happen for dependencies where the version field in the dependencies section of the current project is specified of course.

@ysbaddaden
Copy link
Contributor

Maybe. Thus sounds harsh but maybe its for the best.

It still works though, and the correct refs is installed. Just a mismatch in the spec and the tag.

Maybe this outlines a problem: we must sync the version. I thought about skipping the version in the spec, and only use tags, but then we'd lose version information in branches...

@jhass
Copy link
Member Author

jhass commented May 16, 2016

I thought about skipping the version in the spec, and only use tags, but then we'd lose version information in branches

For git checkouts we could still recover it from git describe, if there's a tag yet at all. But at least for path dependencies it would be lost, yeah.

@straight-shoota
Copy link
Member

In #341 we agreed to only issue a warning in case git tag and SPEC version mismatch. This has already been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants