pct
pct copied to clipboard
(BUG) Workspace configuration not being applied
Describe the bug
The documentation for using workspace configuration says that the directory that you run pct new
from is classed as the current workspace.
This means that the following should work:
echo "lab-stack:\n owner: <YOUR NAME/USER>" > pct.yml
# Install the template
pct install --git-uri https://github.com/chelnak/pct-lab-stack
# Create a new stack
pct new chelnak/lab-stack --name pe_windows_2019
What actually happens is that pct is looking inside the directory that it creates for the configuration.
In this case that would be pe_windows_2019/pct.yml
.
If i pre-create the target directory and add a custom pct.yml, the overrides apply as expected.
To Reproduce See above
Expected behavior
pct.yml should be read from the directory that you run pct new
from.
Screenshots or logs
7:39PM DBG internal/pkg/pct/pct.go:303 > Deploying: /Users/craig.gumbley/code/puppet/lab-windows2019_7
7:39PM DBG internal/pkg/pct/pct.go:303 > Deploying: /Users/craig.gumbley/code/puppet/lab-windows2019_7/.gitignore
7:39PM DBG internal/pkg/pct/pct.go:445 > Error reading config: Config File "pct" Not Found in "[/Users/craig.gumbley/.pdk]"
7:39PM DBG internal/pkg/pct/pct.go:456 > Error reading config: Config File "pct" Not Found in "[/Users/craig.gumbley/code/puppet/lab-windows2019_7]"
What versions are you running?:
- OS: osx
- PCT Version 0.5.0
Additional context Add any other context about the problem here.