GithubHelp home page GithubHelp logo

Comments (4)

apolopena avatar apolopena commented on August 29, 2024 1

I get it now. I feel like this is a regression. It could be some wierdness with Gitpod prebuilds and the init task. I'll look into it.

from gitpod-laravel-starter.

apolopena avatar apolopena commented on August 29, 2024

@strausmann
Lets talk this through because I am not fully understanding the use case for calling composer from the vendor/bin folder when its already installed in /usr/bin. Does this article sum up the use case?
https://www.chriskankiewicz.com/post/run-composer-binaries-from-project-directories

  • By Gitpod design ownership of the binaries in /usr/bin/ are always root. Check it out by running ls -al /usr/bin/
  • I have not seen a situation where sudo is required to run a composer command, all the other binaries in /usr/bin behave the same way.
  • For context I wanted to find the issue where we added
    # Add Workspace/Project composer bin folder to $PATH
    export PATH="$PATH:$HOME/.config/composer/vendor/bin:$GITPOD_REPO_ROOT/vendor/bin"
    Do you know which issue that was?
  • Do you think this issue is caused by the above line of code not firing off or ending with a silent error?
  • Can you show me a use case where calling composer with sudo is required?
  • What is your use case for using composer from vender/bin rather than /usr/bin?

from gitpod-laravel-starter.

strausmann avatar strausmann commented on August 29, 2024

@apolopena

this is not about running composer from the vendor/bin directory.

Since I'm using GitLab, I can't use the GitHub changelogger which is already integrated in this project.

As an alternative I use this project here.

https://github.com/churchtools/changelogger

For the installation I often use the installation into the Global Composer directory and not into the composer directory of the project itself.

composer global require churchtools/changelogger

So that the command "changelogger" works then, the vendor/bin directories must be deposited in $PATH.

from gitpod-laravel-starter.

strausmann avatar strausmann commented on August 29, 2024

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

If you execute this line after the project has been completely loaded in the workspace, everything works as well. The vendir/bin paths can be found in the $PATH.

I don't understand why it doesn't work in the init-complete.sh or before-tasks.sh though....

from gitpod-laravel-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.