Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add switch for defining mta.yaml filename #1154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cmd/assembly.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const (
)

var assembleCmdSrc string
var assembleCmdMtaYamlFilename string
var assembleCmdTrg string
var assembleCmdExtensions []string
var assembleCmdMtarName string
Expand All @@ -25,7 +26,7 @@ var assembleCommand = &cobra.Command{
Long: "Generates an MTA archive according to the MTA deployment descriptor (mtad.yaml)",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
err := artifacts.Assembly(assembleCmdSrc, assembleCmdTrg, assembleCmdExtensions, defaultPlatform, assembleCmdMtarName, assembleCmdParallel, os.Getwd)
err := artifacts.Assembly(assembleCmdSrc, assembleCmdMtaYamlFilename, assembleCmdTrg, assembleCmdExtensions, defaultPlatform, assembleCmdMtarName, assembleCmdParallel, os.Getwd)
logError(err)
return err
},
Expand All @@ -36,6 +37,8 @@ var assembleCommand = &cobra.Command{
func init() {
assembleCommand.Flags().StringVarP(&assembleCmdSrc,
"source", "s", "", "The path to the MTA project; the current path is set as default")
assembleCommand.Flags().StringVarP(&assembleCmdMtaYamlFilename,
"filename", "f", "", "The mta yaml filename of the MTA project; the mta.yaml is set as default")
assembleCommand.Flags().StringVarP(&assembleCmdTrg,
"target", "t", "", `The path to the folder in which the MTAR file is created; the path to the "mta_archives" subfolder of the current folder is set as default`)
assembleCommand.Flags().StringSliceVarP(&assembleCmdExtensions, "extensions", "e", nil,
Expand Down
10 changes: 8 additions & 2 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ import (
)

var cleanupCmdSrc string
var cleanupCmdMtaYamlFilename string
var cleanupCmdTrg string
var cleanupCmdDesc string

var validateCmdSrc string
var validateCmdMtaYamlFilename string
var validateCmdDesc string
var validateCmdExtensions []string
var validateCmdMode string
Expand Down Expand Up @@ -45,6 +47,8 @@ func init() {
// set flags of cleanup command
cleanupCmd.Flags().StringVarP(&cleanupCmdSrc, "source", "s", "",
"The path to the MTA project; the current path is set as default")
cleanupCmd.Flags().StringVarP(&cleanupCmdMtaYamlFilename, "filename", "f", "",
"The mta yaml filename of the MTA project; the mta.yaml is set as default")
cleanupCmd.Flags().StringVarP(&cleanupCmdTrg, "target", "t", "",
"The path to the folder in which the temporary artifacts were created; the current path is set as default")
cleanupCmd.Flags().StringVarP(&cleanupCmdDesc, "desc", "d", "",
Expand All @@ -54,6 +58,8 @@ func init() {
// set flags of validation command
validateCmd.Flags().StringVarP(&validateCmdSrc, "source", "s", "",
"The path to the MTA project; the current path is set as default")
validateCmd.Flags().StringVarP(&validateCmdMtaYamlFilename, "filename", "f", "",
"The mta yaml filename of the MTA project; the mta.yaml is set as default")
validateCmd.Flags().StringVarP(&validateCmdMode, "mode", "m", "",
`The validation mode; supported values: "schema", "semantic" (default)`)
validateCmd.Flags().StringVarP(&validateCmdDesc, "desc", "d", "",
Expand Down Expand Up @@ -114,7 +120,7 @@ var cleanupCmd = &cobra.Command{
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
// Remove temp folder
err := artifacts.ExecuteCleanup(cleanupCmdSrc, cleanupCmdTrg, cleanupCmdDesc, os.Getwd)
err := artifacts.ExecuteCleanup(cleanupCmdSrc, cleanupCmdMtaYamlFilename, cleanupCmdTrg, cleanupCmdDesc, os.Getwd)
logError(err)
return err
},
Expand All @@ -130,7 +136,7 @@ var validateCmd = &cobra.Command{
Long: "MBT validation",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
err := artifacts.ExecuteValidation(validateCmdSrc, validateCmdDesc, validateCmdExtensions, validateCmdMode, validateCmdStrict, validateCmdExclude, os.Getwd)
err := artifacts.ExecuteValidation(validateCmdSrc, validateCmdMtaYamlFilename, validateCmdDesc, validateCmdExtensions, validateCmdMode, validateCmdStrict, validateCmdExclude, os.Getwd)
logError(err)
return err
},
Expand Down
10 changes: 8 additions & 2 deletions cmd/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ import (

// meta command flags
var metaCmdSrc string
var metaCmdMtaYamlFilename string
var metaCmdTrg string
var metaCmdDesc string
var metaCmdExtensions []string
var metaCmdPlatform string

// mtar command flags
var mtarCmdSrc string
var mtarCmdMtaYamlFilename string
var mtarCmdTrg string
var mtarCmdDesc string
var mtarCmdTrgProvided string
Expand All @@ -29,6 +31,8 @@ func init() {
// set flags of meta command
metaCmd.Flags().StringVarP(&metaCmdSrc, "source", "s", "",
"The path to the MTA project; the current path is set as default")
metaCmd.Flags().StringVarP(&metaCmdMtaYamlFilename, "filename", "f", "",
"The mta yaml filename of the MTA project; the mta.yaml is set as default")
metaCmd.Flags().StringVarP(&metaCmdTrg, "target", "t", "",
"The path to the folder in which a temporary folder with generated metadata is created; the current path is set as default")
metaCmd.Flags().StringVarP(&metaCmdDesc, "desc", "d", "",
Expand All @@ -42,6 +46,8 @@ func init() {
// set flags of mtar command
mtarCmd.Flags().StringVarP(&mtarCmdSrc, "source", "s", "",
"The path to the MTA project; the current path is set as default")
mtarCmd.Flags().StringVarP(&mtarCmdMtaYamlFilename, "filename", "f", "",
"The mta yaml filename of the MTA project; the mta.yaml is set as default")
mtarCmd.Flags().StringVarP(&mtarCmdTrg, "target", "t", "",
`The path to the folder in which the MTAR file is created; the path to the "mta_archives" subfolder of the current folder is set as default`)
mtarCmd.Flags().StringVarP(&mtarCmdDesc, "desc", "d", "",
Expand All @@ -64,7 +70,7 @@ var metaCmd = &cobra.Command{
Long: "Generates META-INF folder with manifest and MTAD files",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
err := artifacts.ExecuteGenMeta(metaCmdSrc, metaCmdTrg, metaCmdDesc, metaCmdExtensions, metaCmdPlatform, os.Getwd)
err := artifacts.ExecuteGenMeta(metaCmdSrc, metaCmdMtaYamlFilename, metaCmdTrg, metaCmdDesc, metaCmdExtensions, metaCmdPlatform, os.Getwd)
logError(err)
return err
},
Expand All @@ -80,7 +86,7 @@ var mtarCmd = &cobra.Command{
Long: "Generates MTA archive from the folder with all artifacts",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
err := artifacts.ExecuteGenMtar(mtarCmdSrc, mtarCmdTrg, mtarCmdTrgProvided, mtarCmdDesc, mtarCmdExtensions, mtarCmdMtarName, os.Getwd)
err := artifacts.ExecuteGenMtar(mtarCmdSrc, mtarCmdMtaYamlFilename, mtarCmdTrg, mtarCmdTrgProvided, mtarCmdDesc, mtarCmdExtensions, mtarCmdMtarName, os.Getwd)
logError(err)
return err
},
Expand Down
8 changes: 6 additions & 2 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ const (

// flags of init command
var initCmdSrc string
var initCmdMtaYamlFilename string
var initCmdTrg string
var initCmdExtensions []string
var initCmdMode string

// flags of build command
var mbtCmdCLI string
var buildCmdSrc string
var buildCmdMtaYamlFilename string
var buildCmdTrg string
var buildCmdExtensions []string
var buildCmdMtar = "*"
Expand All @@ -39,6 +41,7 @@ var buildCmdSBomFilePath string
func init() {
// set flags for init command
initCmd.Flags().StringVarP(&initCmdSrc, "source", "s", "", "The path to the MTA project; the current path is set as default")
initCmd.Flags().StringVarP(&initCmdMtaYamlFilename, "filename", "f", "", "The mta yaml filename of the MTA project; the mta.yaml is set as default")
initCmd.Flags().StringVarP(&initCmdTrg, "target", "t", "", "The path to the folder in which the Makefile is generated; the current path is set as default")
initCmd.Flags().StringSliceVarP(&initCmdExtensions, "extensions", "e", nil, "The MTA extension descriptors")
initCmd.Flags().StringVarP(&initCmdMode, "mode", "m", "", `The mode of the Makefile generation; supported values: "default" and "verbose"`)
Expand All @@ -47,6 +50,7 @@ func init() {

// set flags of build command
buildCmd.Flags().StringVarP(&buildCmdSrc, "source", "s", "", "The path to the MTA project; the current path is set as default")
buildCmd.Flags().StringVarP(&buildCmdMtaYamlFilename, "filename", "f", "", "The mta yaml filename of the MTA project; the mta.yaml is set as default")
buildCmd.Flags().StringVarP(&buildCmdTrg, "target", "t", "", `The path to the folder in which the MTAR file is created; the path to the "mta_archives" subfolder of the current folder is set as default`)
buildCmd.Flags().StringSliceVarP(&buildCmdExtensions, "extensions", "e", nil, "The MTA extension descriptors")
buildCmd.Flags().StringVarP(&buildCmdMtar, "mtar", "", "", "The file name of the generated archive file")
Expand All @@ -69,7 +73,7 @@ var initCmd = &cobra.Command{
Args: cobra.NoArgs,
Run: func(cmd *cobra.Command, args []string) {
// Generate build script
err := tpl.ExecuteMake(initCmdSrc, initCmdTrg, initCmdExtensions, makefile, initCmdMode, os.Getwd, true)
err := tpl.ExecuteMake(initCmdSrc, initCmdMtaYamlFilename, initCmdTrg, initCmdExtensions, makefile, initCmdMode, os.Getwd, true)
logError(err)
},
}
Expand All @@ -89,7 +93,7 @@ var buildCmd = &cobra.Command{
// However, in some environments we might want to always use the default mbt from the path. This can be set by using environment variable MBT_USE_DEFAULT.
useDefaultMbt := os.Getenv("MBT_USE_DEFAULT") == "true"
// Note: we can only use the non-default mbt (i.e. the current executable name) from inside the command itself because if this function runs from other places like tests it won't point to the MBT
err := artifacts.ExecBuild(makefileTmp, buildCmdSrc, buildCmdTrg, buildCmdExtensions, buildCmdMode, buildCmdMtar, buildCmdPlatform, buildCmdStrict, buildCmdJobs, buildCmdOutputSync, os.Getwd, exec.Execute, useDefaultMbt, buildCmdKeepMakefile, buildCmdSBomFilePath)
err := artifacts.ExecBuild(makefileTmp, buildCmdSrc, buildCmdMtaYamlFilename, buildCmdTrg, buildCmdExtensions, buildCmdMode, buildCmdMtar, buildCmdPlatform, buildCmdStrict, buildCmdJobs, buildCmdOutputSync, os.Getwd, exec.Execute, useDefaultMbt, buildCmdKeepMakefile, buildCmdSBomFilePath)
// output err info to stdout
logError(err)
return err
Expand Down
5 changes: 4 additions & 1 deletion cmd/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
)

var mergeCmdSrc string
var mergeCmdMtaYamlFilename string
var mergeCmdTrg string
var mergeCmdExtensions []string
var mergeCmdName string
Expand All @@ -20,7 +21,7 @@ var mergeCmd = &cobra.Command{
Long: `Merges the "mta.yaml" file with the MTA extension descriptors`,
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
err := artifacts.ExecuteMerge(mergeCmdSrc, mergeCmdTrg, mergeCmdExtensions, mergeCmdName, os.Getwd)
err := artifacts.ExecuteMerge(mergeCmdSrc, mergeCmdMtaYamlFilename, mergeCmdTrg, mergeCmdExtensions, mergeCmdName, os.Getwd)
return err
},
Hidden: true,
Expand All @@ -31,6 +32,8 @@ func init() {
// set flag of merge command
mergeCmd.Flags().StringVarP(&mergeCmdSrc, "source", "s", "",
"The path to the MTA project; the current path is set as default")
mergeCmd.Flags().StringVarP(&mergeCmdMtaYamlFilename, "filename", "f", "",
"The mta yaml filename of the MTA project; the mta.yaml is set as default")
mergeCmd.Flags().StringVarP(&mergeCmdTrg, "target", "t",
"", "The path to the folder in which the merged file is generated")
mergeCmd.Flags().StringSliceVarP(&mergeCmdExtensions, "extensions", "e", nil,
Expand Down
15 changes: 12 additions & 3 deletions cmd/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,23 @@ import (

// flags of pack command
var packCmdSrc string
var packCmdMtaYamlFilename string
var packCmdTrg string
var packCmdExtensions []string
var packCmdModule string
var packCmdPlatform string

// flags of Makefile build command
var buildModuleCmdSrc string
var buildModuleCmdMtaYamlFilename string
var buildModuleCmdTrg string
var buildModuleCmdExtensions []string
var buildModuleCmdModule string
var buildModuleCmdPlatform string

// flags of stand alone build command
var soloBuildModuleCmdSrc string
var soloBuildModuleCmdMtaYamlFilename string
var soloBuildModuleCmdTrg string
var soloBuildModuleCmdExtensions []string
var soloBuildModuleCmdModules []string
Expand All @@ -36,6 +39,8 @@ func init() {
// sets the flags of of the command pack module
packModuleCmd.Flags().StringVarP(&packCmdSrc, "source", "s", "",
"The path to the MTA project; the current path is is set as default")
packModuleCmd.Flags().StringVarP(&packCmdMtaYamlFilename, "filename", "f", "",
"The mta yaml filename of MTA project; the mta.yaml is is set as default")
packModuleCmd.Flags().StringVarP(&packCmdTrg, "target", "t", "",
"The path to the folder in which the temporary artifacts of the module pack are created; the current path is is set as default")
packModuleCmd.Flags().StringSliceVarP(&packCmdExtensions, "extensions", "e", nil,
Expand All @@ -48,6 +53,8 @@ func init() {
// sets the flags of the Makefile command build module
buildModuleCmd.Flags().StringVarP(&buildModuleCmdSrc, "source", "s", "",
"The path to the MTA project; the current path is set as default")
buildModuleCmd.Flags().StringVarP(&buildModuleCmdMtaYamlFilename, "filename", "f", "",
"The mta yaml filename of MTA project; the mta.yaml is is set as default")
buildModuleCmd.Flags().StringVarP(&buildModuleCmdTrg, "target", "t", "",
"The path to the folder in which the module build results are created; the <source folder>/.<project name>_mta_build_tmp/<module name> path is set as default")
buildModuleCmd.Flags().StringSliceVarP(&buildModuleCmdExtensions, "extensions", "e", nil,
Expand All @@ -60,6 +67,8 @@ func init() {
// sets the flags of the solo Makefile command build module
soloBuildModuleCmd.Flags().StringVarP(&soloBuildModuleCmdSrc, "source", "s", "",
"The path to the MTA project; the current path is set as default")
soloBuildModuleCmd.Flags().StringVarP(&soloBuildModuleCmdMtaYamlFilename, "filename", "f", "",
"The mta yaml filename of the MTA project; the mta.ymal is set as default")
soloBuildModuleCmd.Flags().StringVarP(&soloBuildModuleCmdTrg, "target", "t", "",
"The path to the folder in which the module build results are created; the <current folder>/.<project name>_mta_build_tmp/<module name> path is set as default")
soloBuildModuleCmd.Flags().StringSliceVarP(&soloBuildModuleCmdExtensions, "extensions", "e", nil,
Expand All @@ -81,7 +90,7 @@ var soloBuildModuleCmd = &cobra.Command{
Long: "Builds specified modules according to configurations in the MTA development descriptor (mta.yaml)",
Args: cobra.MaximumNArgs(4),
RunE: func(cmd *cobra.Command, args []string) error {
err := artifacts.ExecuteSoloBuild(soloBuildModuleCmdSrc, soloBuildModuleCmdTrg, soloBuildModuleCmdExtensions,
err := artifacts.ExecuteSoloBuild(soloBuildModuleCmdSrc, soloBuildModuleCmdMtaYamlFilename, soloBuildModuleCmdTrg, soloBuildModuleCmdExtensions,
soloBuildModuleCmdModules, soloBuildModuleCmdAllDependencies, soloBuildModuleCmdMtadGen, soloBuildModuleCmdPlatform,
os.Getwd)
logError(err)
Expand All @@ -98,7 +107,7 @@ var buildModuleCmd = &cobra.Command{
Long: "Builds module according to configurations in the MTA development descriptor (mta.yaml) and archives its artifacts",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
err := artifacts.ExecuteBuild(buildModuleCmdSrc, buildModuleCmdTrg, buildModuleCmdExtensions, buildModuleCmdModule, buildModuleCmdPlatform, os.Getwd)
err := artifacts.ExecuteBuild(buildModuleCmdSrc, buildModuleCmdMtaYamlFilename, buildModuleCmdTrg, buildModuleCmdExtensions, buildModuleCmdModule, buildModuleCmdPlatform, os.Getwd)
logError(err)
return err
},
Expand All @@ -117,7 +126,7 @@ var packModuleCmd = &cobra.Command{
Long: "Packs the module artifacts after the build process",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
err := artifacts.ExecutePack(packCmdSrc, packCmdTrg, packCmdExtensions, packCmdModule, packCmdPlatform, os.Getwd)
err := artifacts.ExecutePack(packCmdSrc, packCmdMtaYamlFilename, packCmdTrg, packCmdExtensions, packCmdModule, packCmdPlatform, os.Getwd)
logError(err)
return err
},
Expand Down
5 changes: 4 additions & 1 deletion cmd/mtad.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

// mtad gen - command flags
var mtadGenCmdSrc string
var mtadGenCmdMtaYamlFilename string
var mtadGenCmdTrg string
var mtadGenCmdExtensions []string
var mtadGenCmdPlatform string
Expand All @@ -21,7 +22,7 @@ var mtadGenCmd = &cobra.Command{
Long: "Generates a deployment descriptor ('mtad.yaml') file from the 'mta.yaml' file",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
err := artifacts.ExecuteMtadGen(mtadGenCmdSrc, mtadGenCmdTrg, mtadGenCmdExtensions, mtadGenCmdPlatform, os.Getwd)
err := artifacts.ExecuteMtadGen(mtadGenCmdSrc, mtadGenCmdMtaYamlFilename, mtadGenCmdTrg, mtadGenCmdExtensions, mtadGenCmdPlatform, os.Getwd)
logError(err)
return err
},
Expand All @@ -33,6 +34,8 @@ func init() {
// set flags of mtad gen command
mtadGenCmd.Flags().StringVarP(&mtadGenCmdSrc, "source", "s", "",
"The path to the MTA project; the current path is set as default")
mtadGenCmd.Flags().StringVarP(&mtadGenCmdMtaYamlFilename, "filename", "f", "",
"The mta yaml filename of MTA project; the mta.yaml is is set as default")
mtadGenCmd.Flags().StringVarP(&mtadGenCmdTrg, "target", "t",
"", "The path to the folder in which the 'mtad.yaml' file is generated; the current path is set as default")
mtadGenCmd.Flags().StringSliceVarP(&mtadGenCmdExtensions, "extensions", "e", nil,
Expand Down
5 changes: 4 additions & 1 deletion cmd/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
)

var projectBuildCmdSrc string
var projectBuildCmdMtaYamlFilename string
var projectBuildCmdTrg string
var projectBuildCmdDesc string
var projectBuildCmdExtensions []string
Expand All @@ -17,6 +18,8 @@ var projectBuildCmdPhase string
func init() {
projectBuildCmd.Flags().StringVarP(&projectBuildCmdSrc,
"source", "s", "", "The path to the MTA project; the current path is set as default")
projectBuildCmd.Flags().StringVarP(&projectBuildCmdMtaYamlFilename,
"filename", "f", "", "The mta yaml filename of MTA project; the mta.yaml is set as default")
projectBuildCmd.Flags().StringVarP(&projectBuildCmdTrg,
"target", "t", "", "The path to the folder in which the temporary artifacts of the project build are created; the current path is set as default")
projectBuildCmd.Flags().StringVarP(&projectBuildCmdDesc,
Expand All @@ -33,7 +36,7 @@ var projectBuildCmd = &cobra.Command{
Short: "Run the MTA project pre and post build commands",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
err := artifacts.ExecuteProjectBuild(projectBuildCmdSrc, projectBuildCmdTrg, projectBuildCmdDesc, projectBuildCmdExtensions, projectBuildCmdPhase, os.Getwd)
err := artifacts.ExecuteProjectBuild(projectBuildCmdSrc, projectBuildCmdMtaYamlFilename, projectBuildCmdTrg, projectBuildCmdDesc, projectBuildCmdExtensions, projectBuildCmdPhase, os.Getwd)
logError(err)
return err
},
Expand Down
5 changes: 4 additions & 1 deletion cmd/provide.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ import (
)

var provideModuleCmdSrc string
var provideModuleCmdMtaYamlFileName string
var provideModuleCmdDesc string
var provideModuleCmdExtensions []string

// init - inits flags of provide module command
func init() {
provideModuleCmd.Flags().StringVarP(&provideModuleCmdSrc, "source", "s",
"", "The path to the MTA project; the current path is set as the default")
provideModuleCmd.Flags().StringVarP(&provideModuleCmdMtaYamlFileName, "filename", "f",
"", "The path to the MTA project; the current path is set as the default")
provideModuleCmd.Flags().StringVarP(&provideModuleCmdDesc, "desc", "d", "",
`The MTA descriptor; supported values: "dev" (development descriptor, default value) and "dep" (deployment descriptor)`)
provideModuleCmd.Flags().StringSliceVarP(&provideModuleCmdExtensions, "extensions", "e", nil,
Expand All @@ -29,7 +32,7 @@ var provideModuleCmd = &cobra.Command{
Long: "Provides list of MTA project modules sorted by their dependencies",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
err := buildops.ProvideModules(provideModuleCmdSrc, provideModuleCmdDesc, provideModuleCmdExtensions, os.Getwd)
err := buildops.ProvideModules(provideModuleCmdSrc, provideModuleCmdMtaYamlFileName, provideModuleCmdDesc, provideModuleCmdExtensions, os.Getwd)
logError(err)
return err
},
Expand Down
2 changes: 2 additions & 0 deletions internal/archive/archive_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ const (
// InitLocFailedOnWorkDirMsg - message raised on getting working directory when initializing location
InitLocFailedOnWorkDirMsg = `could not get working directory`

InvalidMtaYamlFilenameMsg = `the "%s" is not a valid mta yaml file name;`

// InvalidDescMsg - invalid descriptor
InvalidDescMsg = `the "%s" descriptor is invalid; expected one of the following values: Dev, Dep`

Expand Down
Loading