Skip to content

composer vendor/bin not set in $PATH and owner issue. #210

Description

@strausmann

Describe the bug

Setting the BIN directories of the composer vendor directory are not set correctly when starting the workspace.
Normally this should be set via this command.

# Add Workspace/Project composer bin folder to $PATH
export PATH="$PATH:$HOME/.config/composer/vendor/bin:$GITPOD_REPO_ROOT/vendor/bin"

In addition, the Composer Global folder belongs to the owner "root:root" and not "gitpod:gitpod".

Screenshots

image

image

Steps to reproduce

  1. start workspace
  2. check the $PATH variable.
    echo $PATH | grep vendor

Expected behavior

  • System-wide use of the programs in the "vendor/bin" folders of the Global and User composer directory.
  • Running composer global require without sudo

Additional information

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions