JuliaCI/PkgTemplates.jl

Version number in Citation plugin is hard-coded

Open

#389 opened on Feb 23, 2023

View on GitHub
 (2 comments) (2 reactions) (0 assignees)Julia (697 stars) (112 forks)batch import
good-first-issuehelp wantednew-feature

Description

The CITATION.bib file is hard-coded set version as v0.1.0 (#388 makes that hard coded to 1.0.0-dev instead) https://github.com/JuliaCI/PkgTemplates.jl/blob/aba46406eae5069baf71f60f834b8498f2899923/templates/CITATION.bib#L5

We should instead use the version specified in the ProjectFile plugin (if present).

I think this would be a great first issue for someone. Basically we would need to check the priority of Citation was after ProjectFile then during the hook stage use getplugin to see if there is a ProjectFile plugin loaded and if so load the version from that. which we would insert by putting a VERSION into the view and then updating the template to pull that. If there is no ProjectFile plugin present, maybe we should just omit the version line from the Citation.bib all together?

Contributor guide