Skip to content

Pkg.add("ParallelAccelerator") results in dirty state #17610

Closed
@tkelman

Description

@tkelman

Due to one of the files having executable permissions in git, but something wrong happening with the libgit2 clone or checkout. The executable permissions are removed in the working copy, and strangely that change is staged? The package being dirty is very bad, as it means Pkg won't upgrade or remove it unless you go in and manually reset the change.

~/julianightly> rm -rf pkgtmp; JULIA_PKGDIR=$PWD/pkgtemp bin/julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-pre+5654 (2016-07-24 09:08 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit aa2e898 (1 day old master)
|__/                   |  x86_64-unknown-linux-gnu

julia> Pkg.init()
INFO: Initializing package repository /global/homes/t/tkelman/julianightly/pkgtemp/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl

julia> Pkg.add("Images", v"0.5.5", v"0.5.5+")
INFO: Cloning cache of ColorTypes from https://github.com/JuliaGraphics/ColorTypes.jl.git
INFO: Cloning cache of ColorVectorSpace from https://github.com/JuliaGraphics/ColorVectorSpace.jl.git
INFO: Cloning cache of Colors from https://github.com/JuliaGraphics/Colors.jl.git
INFO: Cloning cache of Compat from https://github.com/JuliaLang/Compat.jl.git
INFO: Cloning cache of FileIO from https://github.com/JuliaIO/FileIO.jl.git
INFO: Cloning cache of FixedPointNumbers from https://github.com/JeffBezanson/FixedPointNumbers.jl.git
INFO: Cloning cache of Graphics from https://github.com/JuliaGraphics/Graphics.jl.git
INFO: Cloning cache of Images from https://github.com/timholy/Images.jl.git
INFO: Cloning cache of Reexport from https://github.com/simonster/Reexport.jl.git
INFO: Cloning cache of SIUnits from https://github.com/Keno/SIUnits.jl.git
INFO: Cloning cache of TexExtensions from https://github.com/Keno/TexExtensions.jl.git
INFO: Cloning cache of Zlib from https://github.com/dcjones/Zlib.jl.git
INFO: Installing ColorTypes v0.2.5
INFO: Installing ColorVectorSpace v0.1.5
INFO: Installing Colors v0.6.6
INFO: Installing Compat v0.8.6
INFO: Installing FileIO v0.1.0
INFO: Installing FixedPointNumbers v0.1.4
INFO: Installing Graphics v0.1.3
INFO: Installing Images v0.5.5
INFO: Installing Reexport v0.0.3
INFO: Installing SIUnits v0.0.6
INFO: Installing TexExtensions v0.0.3
INFO: Installing Zlib v0.1.12
INFO: Package database updated

julia> Pkg.status()
1 required packages:
 - Images                        0.5.5              8840a952 (dirty)
11 additional packages:
 - ColorTypes                    0.2.5
 - ColorVectorSpace              0.1.5
 - Colors                        0.6.6
 - Compat                        0.8.6
 - FileIO                        0.1.0
 - FixedPointNumbers             0.1.4
 - Graphics                      0.1.3
 - Reexport                      0.0.3
 - SIUnits                       0.0.6
 - TexExtensions                 0.0.3
 - Zlib                          0.1.12

julia> exit()
~/julianightly> cd pkgtemp/v0.5/Images/
~/julianightly/pkgtemp/v0.5/Images> git status
Not currently on any branch.
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        modified:   test/map.jl

~/julianightly/pkgtemp/v0.5/Images> ls -al test
total 8
drwxr-x--- 2 tkelman tkelman  4096 Jul 25 08:54 .
drwxr-x--- 6 tkelman tkelman   512 Jul 25 08:54 ..
-rw-r----- 1 tkelman tkelman    85 Jul 25 08:54 REQUIRE
-rwxr-x--- 1 tkelman tkelman 25276 Jul 25 08:54 algorithms.jl
-rw-r----- 1 tkelman tkelman 18441 Jul 25 08:54 core.jl
-rw-r----- 1 tkelman tkelman  1337 Jul 25 08:54 corner.jl
-rw-r----- 1 tkelman tkelman   463 Jul 25 08:54 distances.jl
-rw-r----- 1 tkelman tkelman 18633 Jul 25 08:54 edge.jl
-rw-r----- 1 tkelman tkelman 13339 Jul 25 08:54 map.jl
-rw-r----- 1 tkelman tkelman  3362 Jul 25 08:54 overlays.jl
-rw-r----- 1 tkelman tkelman   729 Jul 25 08:54 parallel.jl
-rw-r----- 1 tkelman tkelman   631 Jul 25 08:54 restrict.jl
-rw-r----- 1 tkelman tkelman   433 Jul 25 08:54 runtests.jl
-rw-r----- 1 tkelman tkelman  1657 Jul 25 08:54 writemime.jl

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behaviorhelp wantedIndicates that a maintainer wants help on an issue or pull requestlibgit2The libgit2 library or the LibGit2 stdlib modulepackagesPackage management and loading

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions