Move PNG generation library code into a separate package and remove autodetection of dataDir#13
Move PNG generation library code into a separate package and remove autodetection of dataDir#13sqs wants to merge 6 commits intobadges:masterfrom
Conversation
|
@nathany Wanna review this PR? |
|
@sqs Can you look into why the Travis CI build is failing? I can review this after the holidays. Thanks. |
|
Will do Sent from my iPhone
|
|
I think the Travis CI build is failing because it's set up for jbowes/buckler, not gittip/img.shields.io. If that's not the proximate cause, then it makes it difficult to debug because clicking on the Details link above yields a page that just says "Loading." I don't see this PR at https://travis-ci.org/gittip/img.shields.io/builds, but I think one of the repository owners could trigger a build of this PR over at that link. Then I will diagnose the issue. |
|
@sqs I restarted the build using gittip/img.shields.io. The build did error, but the "Details" link here now gives more useful output. |
|
#25 should help matters |
main.go
Outdated
There was a problem hiding this comment.
I don't believe Go supports relative import paths. You'll need github.com/gittip/img.shields.io/shield.
|
Great. Thanks for the CR and the other fixes. I'll push some changes to this PR to address these issues in a couple of hours. |
… autodetection of dataDir
|
OK, I pushed changes that address these comments and bring this branch up-to-date with master. Travis CI is now passing. Regarding |
There was a problem hiding this comment.
This will need to change per badges/shields#90 (comment)
There was a problem hiding this comment.
Rather than having a shield subfolder, what do you think of flipping it around? Go stdlib and a few other places have a cmd folder.
so github.com/badges/buckler/cmd/buckler is the folder containing the buckler CLI.
so we could make github.com/badges/buckler the library import (stdlib actually has a pkg/ subfolder as well, but meh).
Also, let's just call this buckler (not shield).
|
Thanks @sqs. Should there be some changes to the Command Line section of the README regarding resources? We should also add a section on using it as a library, though it's going the be unstable for a bit as we rename repos and rearrange things again. Hopefully @jbowes can take a look before we hit the big green button, just in case there's something we missed. |
|
@nathany, yes, good point, we will need to update the README to describe the |
|
@sqs Also check the discussion here. badges/shields#94 Everything's up in the air atm. |
|
So I guess I'll do another bit of cleanup now that we've relocated once again. |
|
Sounds like buckler won't be used by shields.io anymore, so this may be a moot point, right? (Re: badges/shields#90 (comment)) |
|
Yah. We'll see how that goes. What were your plans for the buckler library? |
|
We've been using this branch for a few months to generate the badges at https://sourcegraph.com/help/authors/badges. |
This PR makes it possible to use buckler as a library.
Buckler is awesome, BTW!