Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

pico-env.ps1 tries to set up wrong env. variables #50

Closed

Description

@daniol

The script pico-env.ps1 reads the output from pico-env.cmd and sets the environment variables without validation.

This script has currently two problems:

  • It also set environment variables with the process messages of the VerifyExe step, for example it sets the following environment variables:
    'Checking "GNU Arm Embedded Toolchain"...' to ''
    'Checking "CMake"...' to ''
    'Checking "Ninja"...' to ''
    'Checking "Python 3"...' to ''
    'Checking "Git"...' to ''
  • In some scenarios the script pico-env.cmd outputs an additional empty line at the end, this way pico-env.ps1 tries to set an environment variable with an empty name, which causes an error. This seems to happen only when it is run inside a SYSTEM service (for example, when it is called inside a Gitlab Runner job).

Activity

  1. daniol commented on Aug 22, 2024

    @daniol
    Author

    Fixed with #51

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