pub struct MonorepoConfig {
pub tag_prefix: Option<String>,
pub dir: Option<String>,
}Expand description
GoReleaser Pro monorepo configuration.
When configured, tag discovery filters by tag_prefix and the working
directory is scoped to dir.
This is DIFFERENT from TagConfig.tag_prefix:
MonorepoConfig.tag_prefix: tags in git already HAVE the prefix (e.g.subproject1/v1.2.3). The prefix is STRIPPED for{{ .Tag }}while{{ .PrefixedTag }}retains the full tag.TagConfig.tag_prefix: a prefix to PREPEND when constructing{{ .PrefixedTag }}from a plain tag.
When monorepo is configured, it takes precedence over tag.tag_prefix
for PrefixedTag / PrefixedPreviousTag behavior.
Fields§
§tag_prefix: Option<String>Tag prefix for this subproject (e.g. "subproject1/").
Tags matching this prefix are selected during tag discovery, and the
prefix is stripped from {{ .Tag }} while {{ .PrefixedTag }} retains
the full tag.
dir: Option<String>Working directory for this subproject.
Used for changelog path filtering (when no explicit changelog.paths
or crate.path is configured) and as the default build dir.
Trait Implementations§
Source§impl Clone for MonorepoConfig
impl Clone for MonorepoConfig
Source§fn clone(&self) -> MonorepoConfig
fn clone(&self) -> MonorepoConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MonorepoConfig
impl Debug for MonorepoConfig
Source§impl Default for MonorepoConfig
impl Default for MonorepoConfig
Source§fn default() -> MonorepoConfig
fn default() -> MonorepoConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MonorepoConfigwhere
MonorepoConfig: Default,
impl<'de> Deserialize<'de> for MonorepoConfigwhere
MonorepoConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for MonorepoConfig
impl JsonSchema for MonorepoConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for MonorepoConfig
impl RefUnwindSafe for MonorepoConfig
impl Send for MonorepoConfig
impl Sync for MonorepoConfig
impl Unpin for MonorepoConfig
impl UnsafeUnpin for MonorepoConfig
impl UnwindSafe for MonorepoConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more