Skip to content
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

[WIP] Add support for dep, the official package management experiment #196

Closed
wants to merge 9 commits into from

Conversation

kyleconroy
Copy link
Contributor

@kyleconroy kyleconroy commented Jul 15, 2017

TODO

  • Write up a better summary and explanation
  • Parse metadata from Gopkg.toml instead of my adhoc heroku.json
  • Support vendorless repositories by calling dep ensure
  • Update the documentation to explain the metadata options
  • Update the test suite to include dep examples

@stran12
Copy link

stran12 commented Jul 19, 2017

Thanks for creating this ticket! How can I help?

@freeformz
Copy link

FWIW: I started a branch at gophercon using https://github.com/heroku/tq for querying toml. I just pushed that branch (it's not done yet). I think there are parts from both branches that are useful, but I have to spend more time looking into yours.

@kyleconroy
Copy link
Contributor Author

@freeformz @stran12 I need help with a few things. The buildpack downloads binaries from an official Heroku S3 bucket. Can we work on getting tq and dep uploaded to that bucket? Once that happens, testing this will be much easier.

@kyleconroy
Copy link
Contributor Author

@freeformz looking over your branch, I think we should just go with yours. The only thing I noticed is your use of the metadata field in Gopkg.toml. According to the dep docs, metadata should take the following form:

[metadata]
key1 = "value that convey data to other systems"
system1-data = "value that is used by a system"
system2-data = "value that is used by another system"

So I think we should use the following values

[metadata]
heroku-root-package = "github.com/heroku/fixture"

@stran12
Copy link

stran12 commented Jul 31, 2017

@kyleconroy @freeformz Unfortunately, I do not have access to that Heroku S3 bucket neither.

@freeformz
Copy link

@kyleconroy That is not how it works currently because dep complained. I'll have to update my dep and try again. I hope to take another pass at this later this week

@brandur
Copy link

brandur commented Sep 2, 2017

Let me know if I can help in some way on this one!

dep is suggesting that although it's still not an official tool, it's an official experiment and safe for production ready. I was going through all my Go projects this morning and updating their dependency management from govendor to dep before running into this (it was remarkably stable and problem-free otherwise).

@jmaeso
Copy link

jmaeso commented Sep 5, 2017

Is this PR still going forward?

@kyleconroy
Copy link
Contributor Author

Sadly I'm still stuck on this PR. For us to add dep support, we need two binaries added to the S3 bucket. @brandur Do you know who has access to do that? I can updated files.json with the appropriate entries, but I need someone to run the sync script

@jmaeso
Copy link

jmaeso commented Sep 8, 2017

Maybe @freeformz can help with this point?

@freeformz
Copy link

@kyleconroy I added the current versions of dep and tq (a small tomlq like tool that I/we wrote) to the s3 bucket and updated files.json. Can you rebase and change this PR to work off those files/tools?

@freeformz
Copy link

PS: I'm now better positioned and committed to helping you get this merged.

I'm extremely sorry for the delays.

@kyleconroy
Copy link
Contributor Author

kyleconroy commented Sep 21, 2017 via email

@freeformz freeformz mentioned this pull request Sep 22, 2017
@freeformz
Copy link

@kyleconroy My own branch is coming along: https://github.com/heroku/heroku-buildpack-go/tree/dep

@freeformz
Copy link

@kyleconroy What do you think about closing this now that #210 is merged?

If some functionality is missing in master now I'll also happily consider a PR.

Thanks!

@kyleconroy
Copy link
Contributor Author

Thanks for getting your branch over the finish line. I ended up not having the time.

@kyleconroy kyleconroy closed this Sep 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants