Skip to content

Getting configuration options fails on macOS #54

@mtfishman

Description

@mtfishman

For example:

julia> using Git

julia> readchomp(`$(git()) config --get init.defaultBranch`)
ERROR: failed process: Process(setenv(`/Users/mfishman/.julia/artifacts/7edecfc06ad43218e169cf933cc059f1a0249fde/bin/git config --get init.defaultBranch`,["_CE_M=", "LSCOLORS=Gxfxcxdxbxegedabagacad", "PATH=/Users/mfishman/.julia/artifacts/becfd6f89f1a272ace2375b067f1153515ca70b3/bin:/Users/mfishman/.julia/artifacts/e33c9389fd079973c7a7520d36779612df7ec447/bin:/Users/mfishman/.julia/artifacts/7edecfc06ad43218e169cf933cc059f1a0249fde/bin:/opt/miniconda3/bin:/opt/miniconda3/condabin:/Users/mfishman/.juliaup/bin:/Users/mfishman/Library/Python/3.9/bin:/Applications/CMake.app/Contents/bin:/Users/mfishman/.julia/bin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Privileges.app/Contents/Resources:/Library/TeX/texbin", "CXX=arm64-apple-darwin20.0.0-clang++", "CC=arm64-apple-darwin20.0.0-clang", "CXXFLAGS=-ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -isystem /opt/miniconda3/include", "OTOOL=arm64-apple-darwin20.0.0-otool", "DEBUG_CFLAGS=-ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -Og -g -Wall -Wextra -isystem /opt/miniconda3/include", "CONDA_TOOLCHAIN_HOST=arm64-apple-darwin20.0.0", "MANPATH=/opt/homebrew/share/man::"  …  "CONDA_PREFIX=/opt/miniconda3", "TERM_SESSION_ID=784A1E28-7A8C-4146-A16D-7A6F56F1384D", "ac_cv_func_realloc_0_nonnull=yes", "BUILD=arm64-apple-darwin20.0.0", "DEBUG_CXXFLAGS=-ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -Og -g -Wall -Wextra -isystem /opt/miniconda3/include", "CONDA_TOOLCHAIN_BUILD=arm64-apple-darwin20.0.0", "ac_cv_func_malloc_0_nonnull=yes", "GIT_SSL_CAINFO=/Users/mfishman/.julia/juliaup/julia-1.11.1+0.aarch64.apple.darwin14/share/julia/cert.pem", "LS_COLORS=di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43", "OPENBLAS_MAIN_FREE=1"]), ProcessExited(1)) [1]

Stacktrace:
 [1] pipeline_error
   @ ./process.jl:598 [inlined]
 [2] read(cmd::Cmd)
   @ Base ./process.jl:482
 [3] read
   @ ./process.jl:491 [inlined]
 [4] readchomp(x::Cmd)
   @ Base ./io.jl:1137
 [5] top-level scope
   @ REPL[3]:1

julia> pkgversion(Git)
v"1.3.1"

julia> versioninfo()
Julia Version 1.11.1
Commit 8f5b7ca12ad (2024-10-16 10:53 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 10 × Apple M1 Max
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, apple-m1)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions