Giter Club home page Giter Club logo

Comments (5)

ajmeese7 avatar ajmeese7 commented on August 22, 2024 1

There is no git --version in the template, I filled it out entirely. Regardless, here is the version:

$ git --version
git version 2.25.1

from nvm.

ajmeese7 avatar ajmeese7 commented on August 22, 2024 1

Based on my understanding, it shouldn't be. In my Vagrantfile I only copy over the local source code, and ignore all the other stuff that isn't needed:

# Avoid syncing unnecessary files to the VM
config.vm.synced_folder ".", "/projectfolder", type: "rsync", rsync__auto: false, rsync__exclude: [
  # Ignore the Git directory
  ".git",
  # Avoid permission errors in VMs by allowing the Docker containers
  # to create their own internal versions of the database files
  "backend/docker/data/*",
  "backend/docker/questdb/db/*",
  # Ignore testing data
  "testdata/",
  # Avoid copying dependencies and build artifacts to the VMs
  "*node_modules*",
  "*__pycache__*",
  "rust/target",
  # Skip Virtual Machine files
  "images/*",
  "*.ovf",
  "*.ovf",
  "*.vmdk",
  "*.zip"
]

I installed git inside the setup.sh provisioner:

# Provisioning with a shell script
config.vm.provision "shell", name: "Initial setup", privileged: false, path: "./vagrant/setup.sh", env: {"SHELL_ARGS" => ENV["SHELL_ARGS"]}
``

Like so:

```sh
sudo -E apt-get -qq install git coreutils

# Install nvm (if not already installed)
if ! command -v nvm &> /dev/null; then
  echo "Installing nvm..."
  curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash

  export NVM_DIR="$HOME/.nvm"
  [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
  [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
fi

Open to any suggestions, I'm nearing my wits' end on this one, I've been stuck on this issue for three days.


During the time I was writing that answer, I found the problem, I am just a fool. If anyone else hits this issue, check your e-BPF rules, you may be unintentionally blocking the install at the kernel level πŸ™‰

My apologies, have a good day.

from nvm.

ljharb avatar ljharb commented on August 22, 2024

I'm not familiar with "git-core/templates", but the segfault seems to be coming from git itself.

The rest of the issue template would be helpful, particularly git --version.

from nvm.

ljharb avatar ljharb commented on August 22, 2024

Any chance it’s related to this? https://stackoverflow.com/a/6501915

from nvm.

ljharb avatar ljharb commented on August 22, 2024

Glad you figured it out!

from nvm.

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.