Invalid workspace tags? #255
-
|
Hello. I'm testing Chalet a liitle bit more. I've found a problem with the project metadata But I'm getting this error after running Seems to have a problem only with the name and version How can I fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Sorry for the late reply. So basically, you've stumbled upon some accidental / undocumented functionality, but I think the use case is interesting. You basically want to explicitly inherit workspace metadata as the project metadata. so those Okay, so two things here:
|
Beta Was this translation helpful? Give feedback.
-
Nice! I'm glad to have helped a bit |
Beta Was this translation helpful? Give feedback.
Sorry for the late reply. So basically, you've stumbled upon some accidental / undocumented functionality, but I think the use case is interesting. You basically want to explicitly inherit workspace metadata as the project metadata. so those
PROJCT_*macros will be the same as theWORKSPACE_*counterparts.Okay, so two things here:
namehas validation for basic characters and spaces that stop you from using${meta:workspaceName}versionhas validation to only expect a semantic version (ex:1.1.1)versionis a little more tricky, because it's parsed later on into separate macros: -*_VER_MAJOR,*_VER_MINOR,*_VER_PATCH. I just have to disable the validation upfront, and validate the valuβ¦