Replies: 5 comments 11 replies
-
Sub-topic: We currently store project data (the name and in the future, the version) in |
Beta Was this translation helpful? Give feedback.
-
Sub-topic: version format I wonder if we should store the version attributes as strings (since perhaps people will use different things) or even as a single string, as this allows people to be more flexible. E.g. clj-kondo uses 2022.08.01 as the version format and clojure-lsp even uses a more elaborate date-based format. If we would have neil version set <...> then people could choose any date format they like. But for most projects, the major/minor/patch format probably works and even for clj-kondo, I think I could use 2022.8.1 instead of the leading zeros. There's also benefit of having consistency across projects. Should the neil version patch command be more explicit: neil version patch inc and neil version patch set ... perhaps? Maybe I'm overthinking and having the same command set as npm is beneficial. Storing the version as a single string has the benefit that you don't need any other libraries to pull it out and use it e.g. in build.clj. Storing the single string is also what other tools like mvn and npm seem to be doing. Maybe we should do that too and parse the version: if it's unparsable as major/minor/patch then users just won't be able to use our neil version patch commands and they are on their own (they could edit the version manually). |
Beta Was this translation helpful? Give feedback.
-
@rads I'm having second thoughts about the automatic tagging, e.g. for the following use case:
|
Beta Was this translation helpful? Give feedback.
-
@borkdude: Based on the discussions above, here's what I'm thinking for next steps. The "Confirmed" items seem pretty safe to get started on since I can work on the implementation while we finalize the CLI. The items in "To Be Confirmed" are more about the CLI itself which is why I wanted to double-check with you first. Regardless, it will be a little while until I can start on the work this evening, so let me know if there's anything you'd like to change in the plan below in the mean time. I'll make sure to address any feedback before I get started.
|
Beta Was this translation helpful? Give feedback.
-
Sounds good to me
On Wed, 10 Aug 2022 at 07:33, Radford Smith ***@***.***> wrote:
@borkdude <https://github.com/borkdude>: Just want to repeat this since
I've been thinking about it some more now that we just return strings for
the versions: What do you think of changing neil version to return both
the :neil version and the :project version? That way there is no
confusion about which version we're talking about and it's consistent with
NPM's behavior.
$ neil version
{:neil "0.1.43"
:project "0.1.1"}
—
Reply to this email directly, view it on GitHub
<#90 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACFSBVJCBQXWJWR6KZV6HLVYM5MNANCNFSM554T4HAA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Neil version discussion from: #81
Beta Was this translation helpful? Give feedback.
All reactions