-
Notifications
You must be signed in to change notification settings - Fork 0
allow multiple heroku install directives #1
Conversation
@jalandis Requesting a review from you here since I believe you were the one who originally did the setup for our custom heroku buildpacks. Let me know if I can provide any more context here for the changes being made. |
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.
The code changes look great and I appreciate you reporting the issue upstream also 💯
I will approve now but wanted to confirm local dev expectations. Will developers be required to install this package version globally?
Thanks for the speedy review!
Could you elaborate on this? When you say developer will be required to install this package version globally, are you referring to |
Yah. To be more precise, I was wondering how identity migrations would be executed when starting up the local dev server. Or how developers would run up/down manually when creating new migrations. |
Ah, gotcha! I'm unsure how the identity team is managing their own migrations, but for the analytics side of things, you would need to install the My hope is that by the time we get to the point where engineers outside of the |
Overview
This PR updates our fork of the
heroku-buildpack-go
project to allow installation of multiple pkgs via the//+heroku install pkgName
directive.Story
Things That I Tested
analytics-api-staging
dynoassessment-api#db-updates
branchWhere More Testing Might Be Necessary
Implementation Notes
// +heroku install ./anaytics/cmd/.. github.com/rubenv/sql-migrate/[email protected]
. However, this fails due to a version mismatch between the packages. Based on this comment from a go maintainer, its recommended that you rungo install
multiple times, and this is expected behavior.awk
command used to interpolate the//+heroku install
directive terminates early after 1 loop. Removing the earlyexit
will gather every instance of the//+heroku install
directive instead of just the 1st. I'm unsure if this will break anything else, but thepkgs
variable seems like it was intended to be used for multiple packages based on other usages of for loops in the script.bin/go-pre-compile
andbin-go-post-compile
, but was unable to get it working. I opened an issue in the original heroku repo hereDependencies
Code Review Best Practices
Use code best practices for PR reviews