Skip to content

Seems to throw errrors on PS7 on Mac in 1.1.29 #68

@stopthatastronaut

Description

@stopthatastronaut

Calling SyncScriptModule, or Get-VariableFromScriptFile

Exception: /Users/jdbrown/.local/share/powershell/Modules/OctopusStepTemplateCi/1.1.29/Cmdlets/Internal/PowerShellManipulation/Get-VariableFromScriptFile.ps1:33
Line |
  33 |          throw "File '$Path' does not contain metadata variable '$vari …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | File '/Users/jdbrown/source/repos/slack-utils/postgres/sizzle-postgres.scriptmodule.ps1' does not contain metadata variable ''

When I run Get-VariableStatement -Path /Users/jdbrown/source/repos/slack-utils/postgres/sizzle-postgres.scriptmodule.ps1 -VariableName ScriptModuleName -Type Value directly against the file, no issue. Had a cursory debug around, but lacking time to debug deeply I switched to a windows machine and logged this issue.

Please hit me up if you need further info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions