Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

(BUG) Workspace configuration not being applied #373

Open
chelnak opened this issue Mar 27, 2022 · 0 comments
Open

(BUG) Workspace configuration not being applied #373

chelnak opened this issue Mar 27, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@chelnak
Copy link
Contributor

chelnak commented Mar 27, 2022

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.

@chelnak chelnak added the bug Something isn't working label May 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant