mpalmer / action-validator

Tool to validate GitHub Action and Workflow YAML files
GNU General Public License v3.0
271 stars 25 forks source link

Explicitly set the version? #62

Closed chenrui333 closed 8 months ago

chenrui333 commented 8 months ago

👋 it looks like the project is currently using 0.0.0-git for cargo.toml, what is the rationale behind? (why not just explicitly specify the version) Thanks!

mpalmer commented 8 months ago

Because I use git tags to indicate versions instead. Duplicating information is pointless. However, Cargo doesn't support not having a version field, nor does it support reading version information out of git tags, and so we have this unsatisfactory compromise solution.

Releases get a (mangled) Cargo.toml that properly includes the version number, which is done in this action step.