Created
October 23, 2021 15:30
-
-
Save oscarnevarezleal/532f0614228f13c3c472661b263ea1c4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func getBuildpackName(context packit.BuildContext) (string, error) { | |
var conf packit.BuildpackInfo | |
if _, err := toml.DecodeFile(filepath.Join(context.CNBPath, "buildpack.toml"), &conf); err != nil { | |
return "", err | |
} | |
return conf.Name, nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment