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

Put required modules into the repo and consume them in dev scenarios #3103

Merged
merged 9 commits into from Mar 24, 2023

Conversation

JohnMcPMS
Copy link
Member

@JohnMcPMS JohnMcPMS commented Mar 23, 2023

Change

Adds the newer version of PowerShellGet (and its dependencies) that isn't installed by default on Windows so that a clean machine can build and run the dev package and tests. Changes the tests and dev package to consume the modules as well.

This change also updates the CI pipeline to produce a full package layout for testing. This will enable the full package experience to be tested in the end-to-end tests.

Validation

Tests working locally, dev package working locally, in absence of newer version of module.

Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS JohnMcPMS requested a review from a team as a code owner March 23, 2023 19:06
@github-actions

This comment has been minimized.

// Assume that the additional modules path is a sibling directory to the one containing this binary
string assemblyDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) ?? throw new InvalidDataException();
string rootDirectory = Path.GetDirectoryName(assemblyDirectory) ?? throw new InvalidDataException(); ;
string modulesPath = Path.Combine(rootDirectory, "ExternalModules");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should log if it doesnt exist, just to know

@JohnMcPMS JohnMcPMS merged commit 41e2b4c into microsoft:master Mar 24, 2023
8 checks passed
@JohnMcPMS JohnMcPMS deleted the req-modules branch March 24, 2023 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants