Fork me on GitHub
#polylith
<
2022-06-08
>
oly11:06:37

Is there a way to see what polylith thinks the laste release is ? clojure -M:poly ws get:changes:changed-or-affected-projects since:previous-release skip:dev always returns all projects which makes me think my tag pattern of :release "v[0-9|\\-|\\.]*" is not matching the tags are v22-06-01 format

tengstrand12:06:36

The poly tool executes git log --pretty=format:'%H %d' internally and then it picks the first sha that has a tag that matches the regex.

oly13:06:11

that does indeed show the tag, I guess I could grab a line and pass it through a clojure regex find functions to see if it matches

tengstrand13:06:48

Yes, try that.

oly13:06:13

yeah seems thats filaing returning v22 with this (re-find #"v[0-9|\\-|\\.]*" "sha (tag: v22-02-10)") so I guess regex issue on my end

👍 1
oly13:06:41

(re-find #"v[0-9-.v]+" "sha (tag: v22-02-10-v1)") Updated to this regex but it still seems to return all projects 😕

tengstrand13:06:41

Are you sure that only one project is affected by the changes made since the release?

oly13:06:12

pretty sure as one of the projects I rarely touch, I could try on ci and see if it still does the same

tengstrand13:06:28

What do you get if you execute poly ws get:changes:changed-or-affected-projects since:release?

oly14:06:32

ah now that seems to have done it, previous-release vs release, not sure I get that difference my previous release would be my current release would it not ?

oly14:06:17

just reading the docs, sounds like it is :release I want thanks for the support, very helpful as always 🙂

🙂 1