fix ExportOperations relative to config file if it's omitted
This commit is contained in:
+3
-1
@@ -98,7 +98,9 @@ func (c *Config) ValidateAndFillDefaults(configFilename string) error {
|
||||
c.Operations[i] = filepath.Join(c.baseDir(), c.Operations[i])
|
||||
}
|
||||
c.Generated = filepath.Join(c.baseDir(), c.Generated)
|
||||
c.ExportOperations = filepath.Join(c.baseDir(), c.ExportOperations)
|
||||
if c.ExportOperations != "" {
|
||||
c.ExportOperations = filepath.Join(c.baseDir(), c.ExportOperations)
|
||||
}
|
||||
|
||||
if c.Package == "" {
|
||||
abs, err := filepath.Abs(c.Generated)
|
||||
|
||||
Reference in New Issue
Block a user