Skip to content

Commit

Permalink
Just symlink those git*s on MacOS
Browse files Browse the repository at this point in the history
export of PATH is insufficient while testing "remote" access to local
environment since it would not make that PATH active. Instead of messing
with env decided to do this evil step of symlinking.
  • Loading branch information
yarikoptic committed Dec 14, 2024
1 parent fb66918 commit 6c5b628
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,9 @@ install:
- sh: "[ -n \"${INSTALL_GITANNEX}\" ] && datalad-installer --sudo ok ${INSTALL_GITANNEX}"
# TODO remove when datalad-installer can handle this
- cmd: tools\ci\appveyor_install_git-annex.bat
- sh: "[ \"x${APPVEYOR_BUILD_WORKER_IMAGE}\" = \"xmacos-monterey\" ] && export PATH=/Applications/git-annex.app/Contents/MacOS:$PATH || :"
# "package" installation does not place git-annex into the PATH, and for
# compatibility etc, we just symlink also git itself
- sh: "[ \"x${APPVEYOR_BUILD_WORKER_IMAGE}\" = \"xmacos-monterey\" ] && ln -sf /Applications/git-annex.app/Contents/MacOS/git* /usr/local/bin/ || true"


#before_build:
Expand Down

0 comments on commit 6c5b628

Please sign in to comment.