-
-
Notifications
You must be signed in to change notification settings - Fork 60
Uses package main
even with -o
#56
Comments
👍 |
Ran into this issue recently when upgrading, and had to revert to v0.12.8. Did a git bisect, and it indicated: Lines 146 to 148 may be reverting name back to |
👍 |
Using v0.12.7 appears to avoid this problem (thanks @fpaniagua for doing a bisect). |
PRs are welcome |
@markbates It would help if it was more obvious why b334bd7 does what it does. I'm quite happy to work up a fix if I know what I'm fixing :-) |
Without digging in my gut is that it is meant to check if the output directory is main and set the name to that regardless.
…--
Mark Bates
On Feb 14, 2020, at 6:19 PM, Alastair Houghton ***@***.***> wrote:
@markbates It would help if it was more obvious why b334bd7 does what it does. I'm quite happy to work up a fix if I know what I'm fixing :-)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
It looks like the problem is that pkger gets the information for the current directory, *then* appends the path from the '-o' option, but that means that the package name will always be main if it's started from the main package, regardless of '-o'. Fixes markbates#56.
It looks like the problem is that pkger gets the information for the current directory, *then* appends the path from the '-o' option, but that means that the package name will always be main if it's started from the main package, regardless of '-o'. Fixes markbates#56.
Facing a similar issue here - if the root directory is a module, i.e. is not of package @markbates I don't think the assumption that "check if the output directory is main" is correct for the PR #53 It should be inspecting the actual output dir's current package name and set it to that, even if at top level, it's not guaranteed to be To show how painful it is for me to generate
---end of rant--- I am providing a fix for both my and OP's problem here: #80 |
Thank you everyone for tracking this down and for fixing it. Release in the making. |
Is this fixed? I am having this issue |
Contrary to what documentation claims the
package
directive is stillmain
if I askpkger
to write the file in another directory.The text was updated successfully, but these errors were encountered: