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

Save-PSResource does not deduplicate dependencies #285

Open
bgelens opened this issue Oct 14, 2020 · 4 comments
Open

Save-PSResource does not deduplicate dependencies #285

bgelens opened this issue Oct 14, 2020 · 4 comments

Comments

@bgelens
Copy link

@bgelens bgelens commented Oct 14, 2020

Trying to use Save-PSResource to download Az (meta module).

image

It fails because Az.Accounts is downloaded multiple times

Using beta10 on PowerShell 7.1 preview 7 on MacOS

@issue-label-bot
Copy link

@issue-label-bot issue-label-bot bot commented Oct 14, 2020

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.94. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@issue-label-bot issue-label-bot bot added the bug label Oct 14, 2020
@SydneyhSmith
Copy link
Collaborator

@SydneyhSmith SydneyhSmith commented Oct 15, 2020

Thanks @bgelens just to clarify is this causing the save to completely fail? Or is just the Az.Accounts save failing?

@SydneyhSmith
Copy link
Collaborator

@SydneyhSmith SydneyhSmith commented Oct 15, 2020

We may need to add a -Force parameter or something like that

@bgelens
Copy link
Author

@bgelens bgelens commented Oct 15, 2020

Hey @SydneyhSmith, It completely fails.

Repro is easy. Create a folder to save in and run Save-PSResource az -Version 4.8.0 -Path 'folderpath'

Az is downloaded, Az.Accounts is downloaded and Az.Advisor is downloaded then it terminates on the error that Az.Accounts is already in the target folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.