{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/18","repository_url":"https://api.github.com/repos/PowerShell/PowerShellGet","labels_url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/18/comments","events_url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/18/events","html_url":"https://github.com/PowerShell/PowerShellGet/issues/18","id":183316473,"number":18,"title":"[Test-ScriptFileInfo] Fails on *NIX newlines (LF vs. CRLF)","user":{"login":"Velocet","id":3201611,"avatar_url":"https://avatars1.githubusercontent.com/u/3201611?v=3","gravatar_id":"","url":"https://api.github.com/users/Velocet","html_url":"https://github.com/Velocet","followers_url":"https://api.github.com/users/Velocet/followers","following_url":"https://api.github.com/users/Velocet/following{/other_user}","gists_url":"https://api.github.com/users/Velocet/gists{/gist_id}","starred_url":"https://api.github.com/users/Velocet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Velocet/subscriptions","organizations_url":"https://api.github.com/users/Velocet/orgs","repos_url":"https://api.github.com/users/Velocet/repos","events_url":"https://api.github.com/users/Velocet/events{/privacy}","received_events_url":"https://api.github.com/users/Velocet/received_events","type":"User","site_admin":false},"labels":[{"id":369931534,"url":"https://api.github.com/repos/PowerShell/PowerShellGet/labels/Issue-Bug","name":"Issue-Bug","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-17T03:14:27Z","updated_at":"2017-05-23T13:08:46Z","closed_at":null,"body":"`Test-ScriptFileInfo` fails if the file has _LF_ line endings to indicate a newline.\n## Expected Behavior\n\nValidates a comment block for a script.\n## Current Behavior\n\nValidation fails when _LF_ for a newline is used:\n\n> Script 'script.ps1' is missing required metadata properties. Verify that the script file has Version, Guid, Description and Author properties. You can use the Update-ScriptFileInfo or New-ScriptFileInfo cmdlet to add or update the PSScriptInfo to the script file.\n## Possible Solution\n- Open an Issue on GitHub\n- Complain that you can't fix it for yourself\n- Hope that someone at MSFT can do it 👍 \n## Steps to Reproduce\n1. Download [Test-ScriptFileInfo Line Ending Test Files](https://gist.github.com/Velocet/5799ec0b6c4e8c463b2da4bdf8dab4d6)\n2. Valid: `Test-ScriptFileInfo .\\Test-ScriptFileInfo_Newline-CRLF.ps1`\n3. Fails: `Test-ScriptFileInfo .\\Test-ScriptFileInfo_Newline-LF.ps1`\n## Context\n\nNone.\n## Environment\n\n``` PowerShell\n> $PSVersionTable\n\nPSVersion                      5.1.14393.206\nPSEdition                      Desktop\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\nBuildVersion                   10.0.14393.206\nCLRVersion                     4.0.30319.42000\nWSManStackVersion              3.0\nPSRemotingProtocolVersion      2.3\nSerializationVersion           1.1.0.1\n```\n"},"comment":{"url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/comments/303392165","html_url":"https://github.com/PowerShell/PowerShellGet/issues/18#issuecomment-303392165","issue_url":"https://api.github.com/repos/PowerShell/PowerShellGet/issues/18","id":303392165,"user":{"login":"Velocet","id":3201611,"avatar_url":"https://avatars1.githubusercontent.com/u/3201611?v=3","gravatar_id":"","url":"https://api.github.com/users/Velocet","html_url":"https://github.com/Velocet","followers_url":"https://api.github.com/users/Velocet/followers","following_url":"https://api.github.com/users/Velocet/following{/other_user}","gists_url":"https://api.github.com/users/Velocet/gists{/gist_id}","starred_url":"https://api.github.com/users/Velocet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Velocet/subscriptions","organizations_url":"https://api.github.com/users/Velocet/orgs","repos_url":"https://api.github.com/users/Velocet/repos","events_url":"https://api.github.com/users/Velocet/events{/privacy}","received_events_url":"https://api.github.com/users/Velocet/received_events","type":"User","site_admin":false},"created_at":"2017-05-23T13:08:46Z","updated_at":"2017-05-23T13:08:46Z","body":"@bmanikm Verified working on Windows 10 Enterprise LTSB 2016 Version 1607 (Build 14393.1198).\r\n\r\n```PowerShell\r\n> $PSVersionTable\r\n\r\nName                           Value\r\n----                           -----\r\nPSVersion                      5.1.14393.1198\r\nPSEdition                      Desktop\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion                   10.0.14393.1198\r\nCLRVersion                     4.0.30319.42000\r\nWSManStackVersion              3.0\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\n```"}}
{"actor":{"display_login":"Velocet"}}