Carthage Update Not Happening - ios

I know it's duplicate but I have searched and tried many things but update not happening
Tried :
Carthage Update
rm -rf ~/Library/Caches/org.carthage.CarthageKit and carthage update --platform iOS
brew install carthage --HEAD
==> Cloning https://github.com/Carthage/Carthage.git Cloning into '/Users/xxxx/Library/Caches/Homebrew/carthage--git'... remote:
Counting objects: 20918, done. remote: Compressing objects: 100%
(6/6), done. remote: Total 20918 (delta 0), reused 1 (delta 0),
pack-reused 20912 Receiving objects: 100% (20918/20918), 18.03 MiB |
815.00 KiB/s, done. Resolving deltas: 100% (13727/13727), done.
==> Checking out branch master
==> make prefix_install PREFIX=/usr/local/Cellar/carthage/HEAD-256ae62 Error: The brew link step did not complete successfully The formula
built, but is not symlinked into /usr/local Could not symlink
bin/carthage Target /usr/local/bin/carthage already exists. You may
want to remove it: rm '/usr/local/bin/carthage'
To force the link and overwrite all conflicting files: brew link
--overwrite carthage
To list all files that would be deleted: brew link --overwrite
--dry-run carthage
Possible conflicting files are: /usr/local/bin/carthage
==> Caveats Bash completion has been installed to: /usr/local/etc/bash_completion.d
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
==> Summary 🍺 /usr/local/Cellar/carthage/HEAD-256ae62: 69 files, 23.9MB, built in 6 minutes 7 seconds
Please update to the latest Carthage version: 0.30.1. You currently
are on 0.26.2
I could not update it.

Related

Is there a way to fix brew install early eof error?

Whenever I type any brew install command into the terminal I always get the same error:
==> Tapping homebrew/cask
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'...
remote: Enumerating objects: 659774, done.
remote: Counting objects: 100% (338/338), done.
remote: Compressing objects: 100% (170/170), done.
error: 6957 bytes of body are still expected.31 MiB | 4.20 MiB/s
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-cask /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask --origin=origin --template=` exited with 128.
Is there anyway of fixing it? (I have tried uninstalling and reinstalling homebrew and other methods)
That is basically git clone issue, try turn off the compression to see it helps.
git config --global core.compression 0

Can't update or upgrade Homebrew

I can no longer run either brew upgrade or brew update: both abort with
Error: homebrew-core is a shallow clone. To `brew update` first run:
git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" fetch --unshallow
and if I follow this suggestion and run git ... --unshallow and then try brew update or brew upgrade I still get the same error message.
If I then try the command again (maybe I didn't do it right the first time?) I get
fatal: --unshallow on a complete repository does not make sense
How do I get past this error message to run brew upgrade or brew update without errors?
HOMEBREW_VERSION: 2.6.0-82-gde1afcb
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: de1afcbfc58fb3cd5779bd8fbb6b9995700dda4c
Last commit: 30 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: a7c63b0f7f7ae416a2f961b263155281759ac3a7
Core tap last commit: 29 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.FwPJPzeLfq/org.macosforge.xquartz:0
HOMEBREW_EDITOR: /usr/local/bin/bbedit
HOMEBREW_MAKE_JOBS: 4
HOMEBREW_NO_ANALYTICS: set
HOMEBREW_NO_EMOJI: set
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: quad-core 64-bit haswell
Clang: 12.0 build 1200
Git: 2.29.2 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
Java: 1.8.0_172
macOS: 10.15.7-x86_64
CLT: 12.0.32.27
Xcode: 12.2
XQuartz: 2.7.11 => /opt/X11
It's asking you to unshallow both homebrew-core and homebrew-cask with:
git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" fetch --unshallow
git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask" fetch --unshallow
Nothing worked with me until I did:
cd /usr/local/Homebrew/Library/Taps/homebrew/
rm -rf homebrew-core
git clone https://github.com/Homebrew/homebrew-core.git
note: as of Feb 2023 Taps are now here:
/opt/homebrew/Library/Taps/homebrew
Seems that is has been a change in the Homebrew policy and there is not going to be a shallow clone any more.
The correct answer is unshallow, as requested —see Eric3 answer— or install it again, which is going to produce a unshallow / regular copy of the repo.
This worked for me.
git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" fetch --unshallow
git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask" fetch --unshallow
remote: Enumerating objects: 561296, done.
remote: Counting objects: 100% (561255/561255), done.
remote: Compressing objects: 100% (200847/200847), done.
remote: Total 552295 (delta 355423), reused 545449 (delta 348597), pack-reused 0
Receiving objects: 100% (552295/552295), 214.42 MiB | 2.60 MiB/s, done.
Resolving deltas: 100% (355423/355423), completed with 4915 local objects.
From https://github.com/Homebrew/homebrew-core
09e19b5c825..003302f81db master -> origin/master
remote: Enumerating objects: 180904, done.
remote: Counting objects: 100% (166460/166460), done.
remote: Compressing objects: 100% (47394/47394), done.
remote: Total 155334 (delta 116608), reused 146431 (delta 107784), pack-reused 0
Receiving objects: 100% (155334/155334), 73.84 MiB | 4.87 MiB/s, done.
Resolving deltas: 100% (116608/116608), completed with 6054 local objects.
From https://github.com/Homebrew/homebrew-cask

How to resolve the conflict between homebrew packages?

There are the following two packages in conflict. What is the correct way to resolve this conflict?
$ brew cask install rar
==> Downloading https://www.rarlab.com/rar/rarosx-5.9.1.tar.gz
Already downloaded: /Users/pengy/Library/Caches/Homebrew/downloads/fdb2cc1e1fa3b659b0fc92139bc9645b2ec844b68df1b1d25c5f956332af6cd1--rarosx-5.9.1.tar.gz
==> Installing Cask rar
==> Moving Generic Artifact 'default.sfx' to '/usr/local/lib/default.sfx'.
==> Moving Generic Artifact 'rarfiles.lst' to '/usr/local/etc/rarfiles.lst'.
==> Linking Binary 'rar' to '/usr/local/bin/rar'.
==> Unlinking Binary '/usr/local/bin/rar'.
==> Backing Generic Artifact 'rarfiles.lst' up to '/usr/local/Caskroom/rar/5.9.1/rar/rarfiles.lst'.
==> Removing Generic Artifact '/usr/local/etc/rarfiles.lst'.
==> Backing Generic Artifact 'default.sfx' up to '/usr/local/Caskroom/rar/5.9.1/rar/default.sfx'.
==> Removing Generic Artifact '/usr/local/lib/default.sfx'.
==> Purging files for version 5.9.1 of Cask rar
Error: It seems there is already a Binary at '/usr/local/bin/unrar'.
$ brew info unrar
unrar: stable 6.0.2 (bottled)
Extract, view, and test RAR archives
https://www.rarlab.com/
/usr/local/Cellar/unrar/5.9.4 (6 files, 503.5KB) *
Poured from bottle on 2020-09-04 at 23:47:13
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/unrar.rb
==> Analytics
install: 36,700 (30 days), 60,145 (90 days), 286,295 (365 days)
install-on-request: 28,778 (30 days), 48,112 (90 days), 221,675 (365 days)
build-error: 0 (30 days)
I just had this same problem pop up and a Google search led me here, but there was no answer :(
So I just took a leap of faith and uninstalled unrar:
$ brew uninstall unrar
Uninstalling ... (5 files, 505.8KB)
And then tried the installation of rar again:
$ brew install rar
...
==> Linking Binary 'rar' to '/usr/local/bin/rar'
==> Linking Binary 'unrar' to '/usr/local/bin/unrar'
🍺 rar was successfully installed!
And sure enough, without unrar installed the rar installation succeeded. I was able to verify this by running:
$ which rar
/usr/local/bin/rar
$ which unrar
/usr/local/bin/unrar

Can't build docker package (docker-git) with makepkg

I'm trying to build the docker-git package on my archlinux (i686).
I download the package from https://aur.archlinux.org/cgit/aur.git/snapshot/docker-git.tar.gz, untar it and run makepkg.
But I get the following output :
$ makepkg
==> Making package: docker-git 1:1.9.0.dev.18703.670c488-1 (Tue Oct 6 22:27:42 CEST 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating docker git repo...
Fetching origin
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 7 (delta 5), reused 4 (delta 3), pack-reused 0
Unpacking objects: 100% (7/7), done.
From https://github.com/docker/docker
+ 382d383...29cbec5 refs/pull/16758/merge -> refs/pull/16758/merge (forced update)
-> Found docker.service
-> Found docker.install
-> Found docker.conf
==> Validating source files with md5sums...
docker ... Skipped
docker.service ... Passed
docker.install ... Passed
docker.conf ... Passed
==> Extracting sources...
-> Creating working copy of docker git repo...
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
# WARNING! I don't seem to be running in the Docker container.
# The result of this command might be an incorrect build, and will not be
# officially supported.
#
# Try this instead: make all
#
bundles/1.9.0-dev already exists. Removing.
---> Making bundle: dynbinary (in bundles/1.9.0-dev/dynbinary)
Created binary: bundles/1.9.0-dev/dynbinary/dockerinit-1.9.0-dev
Building: bundles/1.9.0-dev/dynbinary/docker-1.9.0-dev
# _/home/vmonteco/Downloads/docker-git/src/docker/docker
/usr/lib/go/pkg/tool/linux_386/link: running gcc failed: exit status 1
/tmp/go-link-183610645/000007.o: In function `__udivdi3':
(.text+0x8ebc0): multiple definition of `__udivdi3'
/tmp/go-link-183610645/000003.o:(.text+0x740): first defined here
collect2: error: ld returned 1 exit status
==> ERROR: A failure occurred in build().
Aborting...
Did I forget something? I don't know what the error means.
I also tried make all as suggested from the src/docker subdirectory but I got :
$ make all
docker build -t "docker-dev:makepkg" .
/bin/sh: docker: command not found
Makefile:74: recipe for target 'build' failed
make: *** [build] Error 127
NB: I also had to replace the docker.service md5 sum in the PKGBUILD file, it was invalid before.
Try building with this PKGBUILD: https://gist.github.com/grimsock/8edc7c4f38800f3f992f
Do you have all dependecies installed? Especially from makedepends array?

I am having trouble understanding what is wrong with my travis build

I am playing with travis-ci for the first time and have run into an error thats confusing me.
Below is my .travis.yml which validates when linted.
language: node_js
node_js:
- 0.8
after_script:
- echo "Hello World"
The following is my travis build output:
$ git clone --depth=50 --branch=master git://github.com/iancrowther/travis-experiment.git iancrowther/travis-experiment
Cloning into 'iancrowther/travis-experiment'...
remote: Counting objects: 27, done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 27 (delta 2), reused 20 (delta 0)
Receiving objects: 100% (27/27), done.
Resolving deltas: 100% (2/2), done.
$ cd iancrowther/travis-experiment
git.2
$ git checkout -qf xxx
$ nvm use 0.8
Now using node v0.8.22
$ node --version
v0.8.22
$ npm --version
1.2.14
$ make test
make: *** No rule to make target `test'. Stop.
The command "make test" exited with 2.
after_script
$ echo "Hello World"
Hello World
Done. Your build exited with 1.
How can i prevent the make file being executed?
Any help would be great, I cant seem to ind the errors explained in the doc's
Ian
ps. does anyone have any links to a guide about styling code??
UPDATE
when #User re-formatted the question, they added the following comment: "used {} button to make the code visible".
change after_script to script
Have a look at this .travis.yml :
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq python3.2 python2.7
python:
- "2.7"
script: ./run_build.sh
The last line is the important one.
script is the command that runs the test.
before is something that enables the test to run
and after is something to clean up.
It is the same pattern you may know from unittests. Setup, Test, Teardown
Since Travis does not find a script: I guess it takes a default option for testing.

Resources