# Registered package files have different file permissions than non-registered

**URL:** https://discourse.julialang.org/t/registered-package-files-have-different-file-permissions-than-non-registered/26111
**Category:** General Usage
**Created:** [July 7, 2019, 11:54am UTC](https://discourse.julialang.org/t/registered-package-files-have-different-file-permissions-than-non-registered/26111 "2019-07-07T11:54:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![essenciary](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/essenciary/32/210469_2.png) [@essenciary](https://discourse.julialang.org/u/essenciary)
#### Post date: [July 7, 2019, 11:54am UTC](https://discourse.julialang.org/t/registered-package-files-have-different-file-permissions-than-non-registered/26111/1 "2019-07-07T11:54:14Z")

</div>

`Genie.jl` packs a series of template files for bootstrapping a new user app. These are bundled within the `Genie.jl` package and then copied and modified as part of generating a new user app.

When using `pkg> add https://github.com/.../Genie.jl` the original file permissions are preserved. However, when using `pkg> add Genie`, the package is added with different file permissions (most notably user read only). This leads to permission errors and failure to create a new app.

This behaviour is unexpected, undocumented, most likely unnecessary and hard to test during development. I have created a patch to manually update permissions, but I have yet to register the new version to be able to test this - and if it needs more changes this will be extremely annoying.

Thinking about opening an issue but I’m not sure where (`Pkg`, `Registrator`?).

Thank you  
A

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [July 7, 2019, 12:27pm UTC](https://discourse.julialang.org/t/registered-package-files-have-different-file-permissions-than-non-registered/26111/2 "2019-07-07T12:27:56Z")

</div>

Seems like a bug in Pkg, files should be read-only no matter how they are being added.

---

<div class="post-metadata">

### Author: ![essenciary](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/essenciary/32/210469_2.png) [@essenciary](https://discourse.julialang.org/u/essenciary)
#### Post date: [July 7, 2019, 12:43pm UTC](https://discourse.julialang.org/t/registered-package-files-have-different-file-permissions-than-non-registered/26111/3 "2019-07-07T12:43:55Z")

</div>

Got it - as long as there’s consistent behaviour between registered and non-registered, that’s fine by me. I’ll open an issue with Pkg.

* * *

There’s something here, possibly related, still open:  
[https://github.com/JuliaLang/Pkg.jl/issues/729](https://github.com/JuliaLang/Pkg.jl/issues/729)
