Skip to content

Conversation

@jcotton42
Copy link
Contributor

@jcotton42 jcotton42 commented Apr 25, 2020

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

@jcotton42 jcotton42 requested a review from daxian-dbw as a code owner April 25, 2020 22:09
@ghost ghost assigned TravisEz13 Apr 25, 2020
@msftclas
Copy link

msftclas commented Apr 25, 2020

CLA assistant check
All CLA requirements met.

@jcotton42 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
Collaborator

vexx32 commented Apr 26, 2020

@PoshChan please retry macos

@PoshChan
Copy link
Collaborator

@vexx32, successfully started retry of PowerShell-CI-macOS

Copy link
Collaborator

@vexx32 vexx32 left a comment

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 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 iSazonov added this to the 7.1.0-preview.3 milestone Apr 26, 2020
@jcotton42
Copy link
Contributor Author

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

@jcotton42
Copy link
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
Collaborator

vexx32 commented Apr 26, 2020

@PoshChan please retry all

@PoshChan
Copy link
Collaborator

@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
Copy link
Member

@TravisEz13 TravisEz13 left a comment

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.

Copy link
Member

@TravisEz13 TravisEz13 left a comment

Choose a reason for hiding this comment

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

look good, pending addressing @iSazonov 's comments

@TravisEz13
Copy link
Member

@PoshChan Please remind me in 4 hours

@PoshChan
Copy link
Collaborator

@TravisEz13, this is the reminder you requested 4 hours ago

@jcotton42
Copy link
Contributor Author

jcotton42 commented Apr 29, 2020

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

@jcotton42
Copy link
Contributor Author

@PoshChan please retry ssh

@PoshChan
Copy link
Collaborator

@jcotton42, you are not authorized to request a rebuild

@vexx32
Copy link
Collaborator

vexx32 commented Apr 30, 2020

@PoshChan please retry ssh

@PoshChan
Copy link
Collaborator

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

@vexx32
Copy link
Collaborator

vexx32 commented Apr 30, 2020

@PoshChan please retry all

@PoshChan
Copy link
Collaborator

@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
Member

@PoshChan Please remind me in 1 hour

@PoshChan
Copy link
Collaborator

@TravisEz13, this is the reminder you requested 1 hour ago

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

@jcotton42 Thanks for your contribution!

@ghost
Copy link

ghost commented May 19, 2020

🎉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