-
Notifications
You must be signed in to change notification settings - Fork 28
Move PNG generation library code into a separate package and remove autodetection of dataDir #13
base: master
Are you sure you want to change the base?
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 |
@@ -11,11 +11,12 @@ import ( | |||
"strings" | |||
"time" | |||
|
|||
"./shield" |
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 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 |
@@ -12,6 +12,7 @@ import ( | |||
"time" | |||
|
|||
"github.com/droundy/goopt" | |||
"github.com/gittip/img.shields.io/shield" |
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.
This will need to change per badges/shields#90 (comment)
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.
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).
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.
sgtm!
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. |
Ah, very cool. I've only looked at SourceGraph briefly, but was very impressed. For now it makes sense to keep doing what you're doing. My only concern with changes here is that @jbowes should be able to deploy http://buckler.repl.ca/ and still have it work for all the API users (such as badges/shields#83). Long term, it sounds like there will be two options:
|
This PR makes it possible to use buckler as a library.
Buckler is awesome, BTW!