Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

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

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.

Activity

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

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