polylith

tengstrand 2025-04-02T03:57:19.930829Z

Important! Make sure to add ^ at the beginning of your :tag-patterns , e.g.:

:tag-patterns {:stable "^stable-*"
                :release "^v[0-9]*"}
I have created an https://github.com/polyfy/polylith/issues/534that explains the problem.

👍 1
seancorfield 2025-05-14T15:36:06.354109Z

Just to clarify the stable/release regex patterns: although it should need ^ at the start, the * at the end is expanded to .* in a real regex, yes? Or will -* match "zero or more dashes? In which case those tag patterns should be updated to be -.*, i.e., a dash and then "anything"...

imre 2025-05-14T16:09:25.907669Z

that's a good question/spot actually

seancorfield 2025-05-14T16:48:42.032039Z

I just updated our tags at work to this:

:tag-patterns {;; we tag each QA deployment with build-
                :release "^build-[0-9][0-9][0-9][0-9]-"
                :stable  "^stable-"}
since it's not a complete match regex so we only care about there being a - and don't care what comes after: so <end of pattern> and .* mean the same anyway.

seancorfield 2025-05-14T16:49:03.174339Z

(we didn't need the leading ^ really but...)

tengstrand 2025-05-15T05:55:31.513649Z

Yes you are right @seancorfield will change from -* to -.*. Thanks for pointing this out!

tengstrand 2025-05-15T06:47:27.423469Z

So ^stable-.* and ^v[0-9].*.

imre 2025-05-15T06:52:13.900999Z

Not sure about the latter

imre 2025-05-15T06:53:04.091629Z

But perhaps

imre 2025-05-15T06:53:11.902369Z

V then number then anything

seancorfield 2025-04-02T04:08:42.789939Z

I guess we get away with this because we have:

:tag-patterns {;; we tag each QA deployment with build-
                :release "build-[0-9][0-9][0-9][0-9]-*"
                :stable  "stable-*"}
and no other tags match either of these.

seancorfield 2025-04-02T04:10:11.520069Z

So really we're match "zero or more -" there instead of "anything"?

tengstrand 2025-04-02T04:13:54.239699Z

Yes, I think you get away with it because you don't have tags like "x-stable-1" or similar that you don't want to match, but it will still match tags beginning with "stable-".

seancorfield 2025-04-02T04:14:16.969429Z

Good to know. Thanks!

👍 1
imre 2025-05-15T07:15:17.456029Z

Just ooc what are some example release version tags you want to support?

tengstrand 2025-05-15T07:16:57.235109Z

^v[0-9].* will match the example in the doc. If people want to match any string starting with v then they can change to ^v[0-9]*.

imre 2025-05-15T07:17:22.865139Z

Fair

mitchelkuijpers 2025-04-02T07:58:36.725299Z

Omg me and @jannick.joosten have looked at this for a whole afternoon thank you so much @tengstrand 😛

🎉 1