serversideup / spin

🚀 Replicate your production environment locally using Docker. Just run "spin up". It's really that easy.
https://serversideup.net/open-source/spin/
GNU General Public License v3.0
1.21k stars 43 forks source link

Spin 2.0 beta fails to install on Mac OS X #52

Closed danmatthews closed 9 months ago

danmatthews commented 9 months ago

Current Behavior

CleanShot 2024-01-04 at 19 23 58@2x

Running the install command in the docs using either curl or wget results in a single Cloning Spin "v2.0.0-beta-2"... message before exiting.

Mac OS X Sonoma 14.0 Tried in both Mac's Terminal and Warp Terminal Using Oh-my-zsh

Expected Behavior

Spin will install.

Steps To Reproduce

Run bash -c "$(curl -fsSL https://raw.githubusercontent.com/serversideup/spin/main/tools/install.sh)" in any mac terminal.

Tried with:

docker is a available on the command line.

Environment

Unable to run spin debug as it won't install.

`zsh 5.9 (x86_64-apple-darwin23.0)`

`Docker version 24.0.7, build afdd53b`

GNU bash, version 3.2.57(1)-release (arm64-apple-darwin23)
Copyright (C) 2007 Free Software Foundation, Inc.


### Anything else?

Sorry this is so vague, let me know if you need anything else to debug.
jaydrogers commented 9 months ago

Weird!! Of course it works on my machine 😆

image

Let me see if I can ship a feature to put the installer in a debug mode.

I assume git is installed locally?

danmatthews commented 9 months ago

`tis indeed!

git version 2.39.0

danmatthews commented 9 months ago

Looks like using some echo magic it's here it fails:

https://github.com/serversideup/spin/blob/main/tools/install.sh#L241

  # Add the remote repository
  git remote add -f origin "$REMOTE" > /dev/null 2>&1
danmatthews commented 9 months ago

Oh ok, we're in business ✅

Looks like maybe there was already a .spin directory in my home directory with some contents in, not entirely sure why.

jaydrogers commented 9 months ago

Thanks for the updates! I knew I ran into this issue somehow and forgot how I did it.

Maybe I will just put in a check if the folder exists already on install.

I will put this on my radar for the next release 👍

jaydrogers commented 9 months ago

Tracking here 🥳

https://github.com/serversideup/spin/discussions/54