-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add more Extra variables to be allowed to be referenced in module manifest #9908
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
Changes from all commits
ed0df1c
1dabc9d
9c20c2b
f080787
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -447,7 +447,16 @@ private Hashtable LoadModuleManifestData( | |
| /// <summary> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @vexx32, your last commit had 23 failures in float/double precision when converting to string.[double]-to-[string] conversion in PowerShell should use the precision specifier G15 Expected strings to be the same, but they were different.
Expected length: 3
Actual length: 18
Strings differ at index 3.
Expected: '3.3'
But was: '3.3000000000000003'
at <ScriptBlock>, /Users/vsts/agent/2.153.2/work/1/s/test/powershell/Language/Parser/Conversions.Tests.ps1: line 540
540: $value -as [string] | Should -BeExactly $StringConversionResultfloat/double precision when converting to string.[double]-to-[string] conversion in PowerShell should use the precision specifier G15 Expected strings to be the same, but they were different.
Expected length: 3
Actual length: 18
Strings differ at index 3.
Expected: '6.6'
But was: '6.6000000000000005'
at <ScriptBlock>, /Users/vsts/agent/2.153.2/work/1/s/test/powershell/Language/Parser/Conversions.Tests.ps1: line 540
540: $value -as [string] | Should -BeExactly $StringConversionResultfloat/double precision when converting to string.[double]-to-[string] conversion in PowerShell should use the precision specifier G15 Expected strings to be the same, but they were different.
Expected length: 16
Actual length: 17
Strings differ at index 15.
Expected: '2.71828182845905'
But was: '2.718281828459045'
at <ScriptBlock>, /Users/vsts/agent/2.153.2/work/1/s/test/powershell/Language/Parser/Conversions.Tests.ps1: line 540
540: $value -as [string] | Should -BeExactly $StringConversionResultfloat/double precision when converting to string.[double]-to-[string] conversion in PowerShell should use the precision specifier G15 Expected strings to be the same, but they were different.
Expected length: 16
Actual length: 17
Strings differ at index 16.
Expected: '3.14159265358979'
But was: '3.141592653589793'
at <ScriptBlock>, /Users/vsts/agent/2.153.2/work/1/s/test/powershell/Language/Parser/Conversions.Tests.ps1: line 540
540: $value -as [string] | Should -BeExactly $StringConversionResultfloat/double precision when converting to string.[float]-to-[string] conversion in PowerShell should use the precision specifier G7 Expected strings to be the same, but they were different.
Expected length: 3
Actual length: 9
Strings differ at index 3.
Expected: '3.3'
But was: '3.3000002'
at <ScriptBlock>, /Users/vsts/agent/2.153.2/work/1/s/test/powershell/Language/Parser/Conversions.Tests.ps1: line 540
540: $value -as [string] | Should -BeExactly $StringConversionResult
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @vexx32, test results were not published for PowerShell-CI-static-analysis at vstfs:///Build/Build/25572
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @vexx32, test results were not published for PowerShell-CI-windows at vstfs:///Build/Build/25575 |
||
| /// Extra variables that are allowed to be referenced in module manifest file. | ||
| /// </summary> | ||
| private static readonly string[] s_extraAllowedVariables = new string[] { SpecialVariables.PSScriptRoot, SpecialVariables.PSEdition, SpecialVariables.EnabledExperimentalFeatures }; | ||
| private static readonly string[] s_extraAllowedVariables = new string[] { | ||
| SpecialVariables.EnabledExperimentalFeatures, | ||
| SpecialVariables.Home, | ||
| SpecialVariables.IsLinux, | ||
| SpecialVariables.IsMacOS, | ||
| SpecialVariables.IsWindows, | ||
| SpecialVariables.PSEdition, | ||
| SpecialVariables.PSHome, | ||
| SpecialVariables.PSScriptRoot | ||
| }; | ||
fMichaleczek marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| /// <summary> | ||
| /// Load and execute the manifest psd1 file or a localized manifest psd1 file. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vexx32, test results were not published for PowerShell-CI-linux at vstfs:///Build/Build/25574