Scoop: error: Your local changes to the following files would be overwritten by merge:

Created on 27 Mar 2019  ·  6Comments  ·  Source: lukesampson/scoop

bucket/shutup10.json seemed to only have white spaces changes. I wasn't able to reset it with git checkout -f so I removed the bucket extra and re-added it.

I guess scoop should detect the problem and not say "Scoop was updated successfully!".

PS C:\Users\bbigras> scoop update
Updating Scoop...
Updating 'extras' bucket...
error: Your local changes to the following files would be overwritten by merge:
        bucket/shutup10.json
Please commit your changes or stash them before you merge.
Aborting
Scoop was updated successfully!

Most helpful comment

@cmcpasserby scoop bucket rm extras; scoop bucket add extras

All 6 comments

Same problem occurred to me after adding the "java" bucket. I didn't change any thing in the scoop folder.

Logs:

PS C:\Users\Richard> scoop update
Updating Scoop...
error: Your local changes to the following files would be overwritten by merge:
        README.md
        appveyor.yml
        bin/checkhashes.ps1
        bin/checkurls.ps1
        bin/checkver.ps1
        bin/install.ps1
        bin/scoop.ps1
        lib/buckets.ps1
        lib/core.ps1
        lib/decompress.ps1
        lib/depends.ps1
        lib/diagnostic.ps1
        lib/install.ps1
        lib/unix.ps1
        libexec/scoop-alias.ps1
        libexec/scoop-cache.ps1
        libexec/scoop-checkup.ps1
        libexec/scoop-cleanup.ps1
        libexec/scoop-config.ps1
        libexec/scoop-depends.ps1
        libexec/scoop-install.ps1
        libexec/scoop-list.ps1
        libexec/scoop-reset.ps1
        libexec/scoop-search.ps1
        libexec/scoop-status.ps1
        libexec/scoop-uninstall.ps1
        libexec/scoop-update.ps1
        libexec/scoop-virustotal.ps1
        libexec/scoop-which.ps1
        test/Scoop-Config.Tests.ps1
        test/Scoop-Core.Tests.ps1
        test/Scoop-Decompress.Tests.ps1
        test/bin/init.ps1
        test/bin/test.ps1
Please commit your changes or stash them before you merge.
error: The following untracked working tree files would be removed by merge:
        bucket/7zip.json
        bucket/ack.json
        bucket/acmesharp.json
        bucket/adb.json
        bucket/ag.json
        bucket/ahoy.json
        bucket/allure.json
        bucket/ammonite.json
        bucket/annie.json
        bucket/ant.json
        bucket/apache.json
        bucket/apex.json
        bucket/apngasm.json
        bucket/aria2.json
        bucket/armclient.json
        bucket/armor.json
        bucket/artifact.json
        bucket/asciidoctorj.json
        bucket/astyle.json
        bucket/atomicparsley.json
        bucket/autoit.json
        bucket/aws-iam-authenticator.json
        bucket/aws-vault.json
        bucket/aws.json
        bucket/axel.json
        bucket/bat.json
        bucket/bazel.json
        bucket/bfg.json
        bucket/blat.json
        bucket/blink1-tool.json
        bucket/bochs.json
        bucket/boxes.json
        bucket/brotli.json
        bucket/buffalo.json
        bucket/busybox.json
        bucket/bzip2.json
        bucket/cacert.json
        bucket/caddy.json
        bucket/cake.json
        bucket/casperjs.json
        bucket/ccat.json
        bucket/cdrtools.json
        bucket/cfr.json
        bucket/chroma.json
        bucket/chromedriver.json
        bucket/cht.json
        bucket/clink.json
        bucket/cloak.json
        bucket/cloc.json
        bucket/cmake.json
        bucket/cmder-full.json
        bucket/cmder.json
        bucket/cobalt.json
        bucket/cockroachdb.json
        bucket/colortool.json
        bucket/composer.json
        bucket/concfg.json
        bucket/consul.json
        bucket/coreutils.json
        bucket/coursier.json
        bucket/cowsay.json
        bucket/cppcheck.json
        bucket/cscope.json
        bucket/csvtosql.json
        bucket/ctags.json
        bucket/curl.json
        bucket/cutter.json
        bucket/cygwin.json
        bucket/dark.json
        bucket/dart.json
        bucket/datamash.json
        bucket/dd.json
        bucket/ddev.json
        bucket/deno.json
        bucket/dep.json
        bucket/devd.json
        bucket/diffutils.json
        bucket/dig.json
        bucket/digdag.json
        bucket/direnv.json
        bucket/dirhash.json
        bucket/dive.json
        bucket/dmd.json
        bucket/docfx.json
        bucket/docker-compose.json
        bucket/docker-machine.json
        bucket/docker-nightly.json
        bucket/docker.json
        bucket/doctl.json
        bucket/dokka.json
        bucket/dos2unix.json
        bucket/dosbox.json
        bucket/dotnet-sdk.json
        bucket/dotnet.json
        bucket/doxygen.json
        bucket/draft.json
        bucket/drone.json
        bucket/duplicacy.json
        bucket/dvc.json
        bucket/edgedriver.json
        bucket/editorconfig.json
        bucket/elixir.json
        bucket/elm.json
        bucket/empty-recycle-bin.json
        bucket/erlang.json
        bucket/eventstore.json
        bucket/exercism.json
        bucket/exiftool.json
        bucket/faas-cli.json
        bucket/far.json
        bucket/fd.json
        bucket/ffmpeg-nightly.json
        bucket/ffmpeg.json
        bucket/ffsend.json
        bucket/figlet.json
        bucket/file.json
        bucket/findutils.json
        bucket/flac.json
        bucket/flatc.json
        bucket/flow.json
        bucket/flyway.json
        bucket/fnproject.json
        bucket/force.json
        bucket/forego.json
        bucket/forge.json
        bucket/fossil.json
        bucket/fzf.json
        bucket/gawk.json
        bucket/gcc.json
        bucket/gdb.json
        bucket/gdrive.json
        bucket/geckodriver.json
        bucket/genact.json
        bucket/ghostscript.json
        bucket/ghq.json
        bucket/gibo.json
        bucket/gifsicle.json
        bucket/git-annex.json
        bucket/git-crypt.json
        bucket/git-interactive-rebase-tool.json
        bucket/git-istage.json
        bucket/git-lfs.json
        bucket/git-sizer.json
        bucket/git-tfs.json
        bucket/git-town.json
        bucket/git-up.json
        bucket/git-with-openssh.json
        bucket/git.json
        bucket/git19.json
        bucket/gitignore.json
        bucket/gitkube.json
        bucket/gitlab-runner.json
        bucket/gitversion.json
        bucket/glide.json
        bucket/global.json
        bucket/glslang-nightly.json
        bucket/glslang.json
        bucket/gnirehtet.json
        bucket/gnupg.json
        bucket/gnupg1.json
        bucket/go.json
        bucket/gof.json
        bucket/gomake.json
        bucket/gopass.json
        bucket/gource.json
        bucket/gow.json
        bucket/gpg.json
        bucket/gradle-bin.json
        bucket/gradle.json
        bucket/grails.json
        bucket/graphicsmagick-q16.json
        bucket/graphicsmagick-q8.json
        bucket/graphviz.json
        bucket/grep.json
        bucket/groovy.json
        bucket/groovyserv.json
        bucket/guetzli.json
        bucket/gunk.json
        bucket/gzip.json
        bucket/hadolint.json
        bucket/handbrake-cli.json
        bucket/hashcat.json
        bucket/hashlink.json
        bucket/haskell.json
        bucket/haxe-dev.json
        bucket/haxe.json
        bucket/helm.json
        bucket/helmfile.json
        bucket/highlight.json
        bucket/hub.json
        bucket/hugo-extended.json
        bucket/hugo.json
        bucket/hygen.json
        bucket/hyp
Aborting
Update failed.

I had a similar persistent error for bucket\imagemagick.json.

The changed file was at %userprofile%\scoop\apps\scoop\current\bucket\imagemagick.json, rather than in %userprofile%\scoop\buckets\main\bucket\imagemagick.json.

Ran the following to resolve the matter:

  • cd %userprofile%\scoop\apps\scoop\current\bucket
  • git checkout -- imagemagick.json
  • scoop update * ← right as rain 👍

Methinks it's related to the recent change to extract the main bucket into its own repo. (Thanks to everyone who worked on that!) I had done a local tweak prior to a pull request and forgot to clean up. Scoop, when it successfully updates itself, also removes that entire directory.

been having the same problem and it is blocking scoop from updating its extras bucket
error: Your local changes to the following files would be overwritten by merge:mand] scripts/grepwin-install-context.reg scripts/grepwin-uninstall-context.reg Please commit your changes or stash them before you merge.

i tried going into that directory and doing a git reset --hard after staging the files and i also tried deleting them and checking the files back out from master.

if i git diff it shows changes on all lines of both of those files, so it appears to be white space problems since git diff --ignore-space-at-eol shows no changes.

still no clue how to make the changes go away so scoop update can work again, tried stashing, hardreset and checking them out from master.

@cmcpasserby scoop bucket rm extras; scoop bucket add extras

@Ash258 ah feel stupid for not thinking of that but works perfect.

IMO, scoop should address this issue automatically, unless SCOOP_DEBUG is set.

Was this page helpful?
0 / 5 - 0 ratings