Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-BicepNetCachePath does not evaluate cacheRootDirectory in bicepconfig.json #306

Open
StefanIvemo opened this issue Jun 15, 2023 · 1 comment
Labels
BicepNet bug Something isn't working

Comments

@StefanIvemo
Copy link
Member

Describe the bug
If I set a custom path for the module cache in bicepconfig.json using "cacheRootDirectory": "/Users/user1/bicepCache",Get-BicepNetCachePath` still resolves to the default path.

To Reproduce
Steps to reproduce the behavior:

  1. Set a custom path for the module cache by adding cacheRootDirectory to bicepconfig.json.
  2. Run Get-BicepNetCachePath

Expected behavior
Get-BicepNetCachePath should look after custom cache location and return it.

Additional context
Add any other context about the problem here.

@StefanIvemo StefanIvemo added bug Something isn't working BicepNet labels Jun 15, 2023
@SimonWahlin
Copy link
Member

Interesting. For this to work I think we till need to add a -Path parameter where you supply a path to a bicep file, otherwise we won't know where to look for bicepconfig.json.

Would that be a good solution @StefanIvemo ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BicepNet bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants