Skip to content

Allow / in relative paths for using module (#7424) - #12492

Merged
Travis Plunk (TravisEz13) merged 7 commits into
PowerShell:masterfrom
jcotton42:using-module-relative-slash
Apr 30, 2020
Merged

Travis Plunk (TravisEz13) merged 7 commits into
PowerShell:masterfrom
jcotton42:using-module-relative-slash

Conversation

@jcotton42

@jcotton42 Josh Cotton (jcotton42) commented Apr 25, 2020 •

Copy link
Copy Markdown
Contributor

PR Summary

Per the title, this makes using module work with a relative path that uses forward slashes. See the issue this is closing for more details.

Fix #7424.

PR Checklist

@msftclas

Microsoft Contribution License Agreements (msftclas) commented Apr 25, 2020 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@jcotton42 Josh Cotton (jcotton42) changed the title Close #7424. Allow / in relative paths for using module Allow / in relative paths for using module (#7424) Apr 25, 2020
@vexx32

Copy link
Copy Markdown
Collaborator

PoshChan-Bot (@PoshChan) please retry macos

@PoshChan

Copy link
Copy Markdown
Collaborator

Rain Sallow (/u/ta11ow) (@vexx32), successfully started retry of PowerShell-CI-macOS

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me, nice work! 😊 💖

@iSazonov Ilya (iSazonov) added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Apr 26, 2020
@iSazonov Ilya (iSazonov) added this to the 7.1.0-preview.3 milestone Apr 26, 2020
@jcotton42

Copy link
Copy Markdown
Contributor Author

Moved the test to the right file and updated it to use Pester's TestDrive

@jcotton42

Copy link
Copy Markdown
Contributor Author

CI for all 3 OSes failed, but it's code that, as far as I can tell, was unaffected by my change. And the tests ran just fine on the last commit, and the only change between the last commit and the current one is I moved my test and updated it.

@vexx32

Copy link
Copy Markdown
Collaborator

PoshChan-Bot (@PoshChan) please retry all

@PoshChan

Copy link
Copy Markdown
Collaborator

Rain Sallow (/u/ta11ow) (@vexx32), successfully started retry of PowerShell-CI-static-analysis, PowerShell-CI-Windows, PowerShell-CI-macOS, PowerShell-CI-Linux

Contains char instead of a string, and changing how the test checked for
success

@TravisEz13 Travis Plunk (TravisEz13) left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

requesting adding coverage for regressions.
I think the new code was covered well, but reviewing existing cases there is a gap.

@TravisEz13 Travis Plunk (TravisEz13) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

look good, pending addressing Ilya (@iSazonov) 's comments

@TravisEz13

Copy link
Copy Markdown
Member

PoshChan-Bot (@PoshChan) Please remind me in 4 hours

@PoshChan

Copy link
Copy Markdown
Collaborator

Travis Plunk (@TravisEz13), this is the reminder you requested 4 hours ago

@jcotton42

Josh Cotton (jcotton42) commented Apr 29, 2020 •

Copy link
Copy Markdown
Contributor Author

TestCases refactor complete, should be ready for merging once CI passes.

@jcotton42

Copy link
Copy Markdown
Contributor Author

PoshChan-Bot (@PoshChan) please retry ssh

@PoshChan

Copy link
Copy Markdown
Collaborator

Josh Cotton (@jcotton42), you are not authorized to request a rebuild

@vexx32

Copy link
Copy Markdown
Collaborator

PoshChan-Bot (@PoshChan) please retry ssh

@PoshChan

Copy link
Copy Markdown
Collaborator

Rain Sallow (/u/ta11ow) (@vexx32), I do not understand the build target(s) ssh; I only allow static, windows, macos, linux, all

@vexx32

Copy link
Copy Markdown
Collaborator

PoshChan-Bot (@PoshChan) please retry all

@PoshChan

Copy link
Copy Markdown
Collaborator

Rain Sallow (/u/ta11ow) (@vexx32), successfully started retry of PowerShell-CI-static-analysis, PowerShell-CI-Windows, PowerShell-CI-macOS, PowerShell-CI-Linux

Co-authored-by: Ilya <darpa@yandex.ru>
@TravisEz13

Copy link
Copy Markdown
Member

PoshChan-Bot (@PoshChan) Please remind me in 1 hour

@PoshChan

Copy link
Copy Markdown
Collaborator

Travis Plunk (@TravisEz13), this is the reminder you requested 1 hour ago

@TravisEz13 Travis Plunk (TravisEz13) changed the title Allow / in relative paths for using module (#7424) Allow / in relative paths for using module (#7424) Apr 30, 2020
@TravisEz13
Travis Plunk (TravisEz13) merged commit c19a417 into PowerShell:master Apr 30, 2020
@iSazonov

Copy link
Copy Markdown
Collaborator

Josh Cotton (@jcotton42) Thanks for your contribution!

@ghost

Copy link
Copy Markdown

🎉v7.1.0-preview.3 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

using module statement with a relative path not treated as relative to the location of the enclosing script when forward slashes are used

6 participants