-
-
Notifications
You must be signed in to change notification settings - Fork 911
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
Alt licence #9
Alt licence #9
Conversation
"LICENSE.md", | ||
config.Files = []string{} | ||
|
||
for _, f := range []string{"README.md", "LICENCE.md", "LICENSE.md"} { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it would be nice to get README
s and LICENSE
s with other extensions too, so I was thinking about changing this to README.*
, LICENSE.*
and LICENCE.*
...
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats not a bad idea. I think the patterns should probably be abstracted out of that function, too; it'd be more maintainable in a var statement at the top.
I'll get something going tomorrow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, if you can't by any reason, let me know and I work on it =)
thanks for the contribution, by the way =D
refs #4 |
@caarlos0 ♻️ A notehttps://github.com/goreleaser/releaser/pull/9/files#diff-3baf47c64847a8fb8aaa8cc2e088513bR80 This is pure laziness on my behalf to avoid writing error catchers. I'm happy to do so, but if I do I think I'm going to change (*ProjectConfig)func fix() error to avoid lots of shadowing/ declaration cruft. |
Not everybody uses Markdown (especially for LICENSE files), so how about also looking for files without an extension? I suppose it comes down to this RE: It might also be a good idea to include a |
@nochso latest commit has a naive implementation of that pattern (I didn't play much with the globbing in EDIT: I left the suffix open: given github will (will?) support, say, README.rst (among others) I left it wildcarded. |
|
Good spot; latest commit is a little more permissive. |
Good enough for me. Otherwise |
Looks good, thanks! |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
From https://www.reddit.com/r/golang/comments/5l3i9b/deliver_go_binaries_as_fast_and_easy_as_possible/dbss8t5/
This PR introduces expansion of the default files to add code in
config.go
'sfix()
function.The original rationale behind this change is to allow the tool to recognise and use the alternative spelling of 'Licence' that Real English ™️ uses. The scope has crept a little in that the original implementation would bail when no licence was included.
I have also expanded the testing of this method; it had happy-path'd file selection a tad.