Skip to content

Commit

Permalink
Merge pull request #169 from shawncatz/upgrade-heroku-go
Browse files Browse the repository at this point in the history
upgrade heroku-go
  • Loading branch information
mars authored Jan 31, 2019
2 parents 740f81d + 49f8c3b commit de66ab2
Show file tree
Hide file tree
Showing 4 changed files with 1,311 additions and 61 deletions.
4 changes: 2 additions & 2 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions heroku/resource_heroku_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,17 @@ func resourceHerokuBuildCreate(d *schema.ResourceData, meta interface{}) error {

if v, ok := d.GetOk("buildpacks"); ok {
var buildpacks []*struct {
URL *string `json:"url,omitempty" url:"url,omitempty,key"`
Name *string `json:"name,omitempty" url:"name,omitempty,key"` // Buildpack Registry name of the buildpack for the app
URL *string `json:"url,omitempty" url:"url,omitempty,key"` // the URL of the buildpack for the app
}
buildpacksArg := v.([]interface{})
for _, buildpack := range buildpacksArg {
b := buildpack.(string)
buildpacks = append(buildpacks, &struct {
URL *string `json:"url,omitempty" url:"url,omitempty,key"`
Name *string `json:"name,omitempty" url:"name,omitempty,key"` // Buildpack Registry name of the buildpack for the app
URL *string `json:"url,omitempty" url:"url,omitempty,key"` // the URL of the buildpack for the app
}{
URL: &b,
URL: &b, // This may cause problems using Buildpack Registry values, may need to expand this.
})
}
opts.Buildpacks = buildpacks
Expand Down
Loading

0 comments on commit de66ab2

Please sign in to comment.