Homebrew.jl icon indicating copy to clipboard operation
Homebrew.jl copied to clipboard

Cannot build Homebrew.jl under v0.7.0

Open BoundaryValueProblems opened this issue 6 years ago • 4 comments

@staticfloat, I started using Julia v0.7.0 and just added Homebrew.jl v0.7.0. However, during building Homebrew.jl, I encountered the following error:

build Homebrew
  Building Homebrew → `~/.julia/packages/Homebrew/l8kUw/deps/build.log`
┌ Error: Error building `Homebrew`:
│ Initialized empty Git repository in /Users/xxx/.julia/packages/Homebrew/l8kUw/deps/usr/.git/
│ error: unknown option `shallow-since=refs/tags/1.7.1'
│ usage: git fetch [<options>] [<repository> [<refspec>...]]
...

I cd'ed to that directory and ran ./brew update there, but got the same error. Thanks for your help!

BoundaryValueProblems avatar Aug 11 '18 19:08 BoundaryValueProblems

Same error for me.

MLackner avatar Aug 30 '18 16:08 MLackner

Hi, I get the same error 😖
Thanks in advance for your help.

(v0.7) pkg> rm Homebrew
  Updating `~/.julia/environments/v0.7/Project.toml`
  [d9be37ee] - Homebrew v0.7.0
  Updating `~/.julia/environments/v0.7/Manifest.toml`
 [no changes]

(v0.7) pkg> add Homebrew
 Resolving package versions...
  Updating `~/.julia/environments/v0.7/Project.toml`
  [d9be37ee] + Homebrew v0.7.0
  Updating `~/.julia/environments/v0.7/Manifest.toml`
 [no changes]

(v0.7) pkg> build Homebrew
  Building Homebrew → `~/.julia/packages/Homebrew/l8kUw/deps/build.log`
┌ Error: Error building `Homebrew`: 
│ Initialized empty Git repository in /Users/forets/.julia/packages/Homebrew/l8kUw/deps/usr/.git/
│ error: unknown option `shallow-since=refs/tags/1.7.6'
│ usage: git fetch [<options>] [<repository> [<refspec>...]]
│    or: git fetch [<options>] <group>
│    or: git fetch --multiple [<options>] [(<repository> | <group>)...]
│    or: git fetch --all [<options>]
│ 
│     -v, --verbose         be more verbose
│     -q, --quiet           be more quiet
│     --all                 fetch from all remotes
│     -a, --append          append to .git/FETCH_HEAD instead of overwriting
│     --upload-pack <path>  path to upload pack on remote end
│     -f, --force           force overwrite of local branch
│     -m, --multiple        fetch from multiple remotes
│     -t, --tags            fetch all tags and associated objects
│     -n                    do not fetch all tags (--no-tags)
│     -j, --jobs <n>        number of submodules fetched in parallel
│     -p, --prune           prune remote-tracking branches no longer on remote
│     --recurse-submodules[=<on-demand>]
│                           control recursive fetching of submodules
│     --dry-run             dry run
│     -k, --keep            keep downloaded pack
│     -u, --update-head-ok  allow updating of HEAD ref
│     --progress            force progress reporting
│     --depth <depth>       deepen history of shallow clone
│     --unshallow           convert to a complete repository
│     --update-shallow      accept refs that update .git/shallow
│     --refmap <refmap>     specify fetch refmap
│     -4, --ipv4            use IPv4 addresses only
│     -6, --ipv6            use IPv6 addresses only
│ 
│ ERROR: LoadError: failed process: Process(`/Users/forets/.julia/packages/Homebrew/l8kUw/deps/usr/bin/brew update --force`, ProcessExited(1)) [1]
│ Stacktrace:
│  [1] error(::String, ::Base.Process, ::String, ::Int64, ::String) at ./error.jl:42
│  [2] pipeline_error at ./process.jl:712 [inlined]
│  [3] #run#509(::Bool, ::Function, ::Cmd) at ./process.jl:670
│  [4] run at ./process.jl:668 [inlined]
│  [5] #brew#4(::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Function, ::Cmd) at /Users/forets/.julia/packages/Homebrew/l8kUw/src/API.jl:19
│  [6] #brew at ./none:0 [inlined]
│  [7] #update#6(::Bool, ::Function) at /Users/forets/.julia/packages/Homebrew/l8kUw/src/API.jl:50
│  [8] update() at /Users/forets/.julia/packages/Homebrew/l8kUw/src/API.jl:50
│  [9] top-level scope at /Users/forets/.julia/packages/Homebrew/l8kUw/deps/build.jl:3
│  [10] include at ./boot.jl:317 [inlined]
│  [11] include_relative(::Module, ::String) at ./loading.jl:1038
│  [12] include(::Module, ::String) at ./sysimg.jl:29
│  [13] include(::String) at ./client.jl:398
│  [14] top-level scope at none:0
│ in expression starting at /Users/forets/.julia/packages/Homebrew/l8kUw/deps/build.jl:1
└ @ Pkg.Operations /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Operations.jl:1068

mforets avatar Sep 30 '18 21:09 mforets

I was able to get rid of the error by deleting all Homebrew related folders and files in the .julia directory.

MLackner avatar Oct 02 '18 08:10 MLackner

I got the same error today after updating to v0.7.1. The following worked for me to get rid of the error:

using Homebrew
Homebrew.brew(`install git`)
Homebrew.update()

oyamad avatar Jan 10 '19 00:01 oyamad