Coder Social home page Coder Social logo

Comments (3)

nickbabcock avatar nickbabcock commented on June 17, 2024

I agree, it would be desirable to avoid installing build dependencies globally. Do you have a solution in mind?

The original impetus for installing these dependencies globally is that I found it analogous to other projects requiring system packages in order to build (ie: I've used python projects that required the cairo package to build). The analogy isn't perfect, so I'm happy to change based on feedback!

Fwiw, some build dependencies aren't npm packages (like hugo, wasm-opt, and flatc), so any solution would need to encompass these. And hugo installation would need to drop the dpkg for this to work on fedora.

from pdx-tools.

tkasparek avatar tkasparek commented on June 17, 2024

It might be just my obsedancy speaking, but I don't like installing node packages, python modules using pip globally and I am really trying to get as much of project dependencies installed without root permissions.

I've had success with following patch to justfile:

   set -euxo pipefail
   MY_TMP="$(mktemp -d)"
   trap 'rm -rf -- "$MY_TMP"' EXIT
-    
+
+  npm config set prefix '~/.local/'
+  mkdir -p ~/.local/bin
+
+  if [[ ! ":$PATH:" == *":$HOME/.local/bin/:"* ]]; then
+    echo 'export PATH=~/.local/bin/:$PATH' >> ~/.bashrc
+    export PATH=~/.local/bin/:$PATH
+  fi
+
   npm install -g [email protected]
   npm install -g @cloudflare/wrangler

The downside is that it works just for bash and not for other shells but as the justfile executes bash so I suppose this is not an issue.

The real issue is that https://github.com/gohugoio/hugo does not provide .rpm packaged binaries so I'll need to look into this one further.

from pdx-tools.

nickbabcock avatar nickbabcock commented on June 17, 2024

With devcontainer support added in #70 and subsequent patches, I think it is a decent state to close this issue. Happy to incorporate any further feedback to make contributions easier!

from pdx-tools.

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.