-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
empty .gx/post-install created #208
Comments
What's the output of |
When Gx runs the (@Stebalien This is related to the whyrusleeping/gx-go#51 (comment) in Lines 98 to 112 in 855ebcf
|
@schomatis that's assuming that the package was linked, right? |
Not sure I follow, the hook is independent of the link command, I mean, |
gx won't usually run the post-install hook in a normal repo; it should only do that when it installs packages in |
Ok, now I understand the original question. Yes, the hook is run in (By the way, this is a nice example of why I would like to invest some time defining a clear path terminology, to avoid terms like "normal" or having to specify the entire |
"that's assuming that the package was linked, right?" If the package isn't linked, then this is a bug. And really, gx-workspace shouldn't care so this is probably a bug. |
In which repo, the one with the file, or the one I used gx-workspace from? |
Some details > go-merkledag (master) ✗ ls .gx
lastpubver post-install
> go-merkledag (master) ✗ gx-go link
QmRiQCJZ91B7VNmLvA6sxzDuBJGSojS3uXHHVuNr3iueNZ /Users/dignifiedquire/.go/src/github.com/ipfs/go-merkledag
> go-merkledag (master) ✗ cat .gx/post-install
> go-merkledag (master) ✗ ls -lh .gx
total 8
-rw-r--r-- 1 dignifiedquire staff 55B Aug 30 14:08 lastpubver
-rw-r--r-- 1 dignifiedquire staff 0B Aug 30 14:13 post-install |
Yeah, you've linked a dependency. Basically, this means that whenever you "install" that dependency, it'll rewrite it and add the post-install file. When using
|
@schomatis is right, this is a documentation issue. |
I had not linked this before using gx-workspace, so this sounds more like an issue with the interaction between the two.
I also still don’t understand how not cleaning up empty files is not a bug in any state.
…On 31. Aug 2018, 19:34 +0200, Steven Allen ***@***.***>, wrote:
@schomatis is right, this is a documentation issue.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
But you had run
These are the marker-files gx leaves behind once it installs a package in |
Sometimes an empty
.gx/post-install
file is generated after running through an update from gx-workspace. I haven't found a pattern yet, as to when or why.The text was updated successfully, but these errors were encountered: