Skip to content

Environment scope doesn't apply consistently for GitLab subgroups #8618

Closed
@peat-psuwit

Description

@peat-psuwit

Bug description

When open a GitLab repository which resides in a subgroup, the environment variable scope which specify the top level group only doesn't apply consistently between the resulting env applied and the result of gp env.

Steps to reproduce

  1. Go to https://gitpod.io/variables, set a variable e.g. VISUAL=gitpod-code --wait, and set the scope to ubports/*.
  2. Open a workspace for https://gitlab.com/ubports/core/packaging/libayatana-common (Shortcut: https://gitpod.io/#https://gitlab.com/ubports/core/packaging/libayatana-common)
  3. Using terminal, compare echo $VISUAL with gp env. echo $VISUAL would show the GitPod's default (/ide/bin/remote-cli/gitpod-code), while gp env would show the set value (gitpod-code --wait).

Workspace affected

No response

Expected behavior

echo $VISUAL should produces the same value as gp env would display. Preferably for my usecase, my variable set should apply to actual environment variables.

Example repository

https://gitlab.com/ubports/core/packaging/libayatana-common, or any repositories under https://gitlab.com/ubports/core/packaging really.

Anything else?

No response

Front logo Front conversations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    In Validation

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions