Skip to content
Snippets Groups Projects
Commit b9ed599d authored by Vaastav Anand's avatar Vaastav Anand
Browse files

Remove Version Constant code smell

parent f77cfbc9
No related branches found
No related tags found
No related merge requests found
package generators package generators
const MODULE_ROOT string = "gitlab.mpi-sws.org/cld/blueprint/blueprint-compiler" const MODULE_ROOT string = "gitlab.mpi-sws.org/cld/blueprint/blueprint-compiler"
const VERSION string = "0.0.2" const VERSION string = "v0.0.2"
...@@ -86,7 +86,7 @@ func (v *MainVisitor) modifySpecModFile() { ...@@ -86,7 +86,7 @@ func (v *MainVisitor) modifySpecModFile() {
} }
f.Module.Mod.Path = "spec" f.Module.Mod.Path = "spec"
f.Module.Syntax.Token = []string{"module", "spec"} f.Module.Syntax.Token = []string{"module", "spec"}
err = f.AddRequire("gitlab.mpi-sws.org/cld/blueprint/blueprint-compiler", "v0.0.2") err = f.AddRequire("gitlab.mpi-sws.org/cld/blueprint/blueprint-compiler", VERSION)
if err != nil { if err != nil {
v.logger.Fatal(err) v.logger.Fatal(err)
} }
...@@ -220,7 +220,7 @@ func (v *MainVisitor) generateModFile(ctr_dir string, n *DockerContainerNode) { ...@@ -220,7 +220,7 @@ func (v *MainVisitor) generateModFile(ctr_dir string, n *DockerContainerNode) {
if err != nil { if err != nil {
v.logger.Fatal(err) v.logger.Fatal(err)
} }
err = f.AddRequire("gitlab.mpi-sws.org/cld/blueprint/blueprint-compiler", "v0.0.2") err = f.AddRequire("gitlab.mpi-sws.org/cld/blueprint/blueprint-compiler", VERSION)
if err != nil { if err != nil {
v.logger.Fatal(err) v.logger.Fatal(err)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment