Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ijaz Ahmad
ksonnet
Commits
ea5b4d37
Commit
ea5b4d37
authored
May 02, 2018
by
bryanl
Browse files
Add component paths to jpath
Signed-off-by:
bryanl
<
bryanliles@gmail.com
>
parent
fe8f325d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
pkg/env/env.go
pkg/env/env.go
+9
-0
No files found.
pkg/env/env.go
View file @
ea5b4d37
...
...
@@ -118,6 +118,15 @@ func Evaluate(a app.App, envName, components, paramsStr string) (string, error)
libPath
,
)
if
len
(
appEnv
.
Targets
)
==
0
{
vm
.
AddJPath
(
filepath
.
Join
(
a
.
Root
(),
"components"
))
}
else
{
for
_
,
moduleName
:=
range
appEnv
.
Targets
{
path
:=
filepath
.
Join
(
append
([]
string
{
a
.
Root
(),
"components"
},
moduleName
)
...
)
vm
.
AddJPath
(
path
)
}
}
envCode
,
err
:=
environmentsCode
(
a
,
envName
)
if
err
!=
nil
{
return
""
,
err
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment