gitversion

package
v0.0.29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 13 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripModuleTagPrefixes added in v0.0.3

func StripModuleTagPrefixes(tag string) string

stripModuleTagPrefixes returns the last component of a path. This is used to resolve the tag format used in pulumi repos of "module/versionComponents" to a simple versionComponents.

Types

type LanguageVersions

type LanguageVersions struct {
	SemVer     string
	Python     string
	JavaScript string
	DotNet     string
}

LanguageVersions contains a generic semantic version and Python-specific version number.

func GetLanguageVersions

func GetLanguageVersions(workingDirPath string, commitish plumbing.Revision, omitCommitHash bool,
	releasePrefix string, isPrerelease bool) (*LanguageVersions, error)

GetLanguageVersions calculates the generic and Python-specific version numbers for the given `commitish` based on the most recent tag, the status of the work tree with respect to dirty files, and a timestamp.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL