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

feat: add env var to configure webroot #4

Merged
merged 1 commit into from
Dec 15, 2023
Merged

feat: add env var to configure webroot #4

merged 1 commit into from
Dec 15, 2023

Conversation

ctrox
Copy link
Contributor

@ctrox ctrox commented Dec 15, 2023

this adds a new env var that overrides the webroot and will also allow it to pass detection even if there is no public.html in any of the expected places.

this adds a new env var that overrides the webroot and will also allow
it to pass detection even if there is no `public.html` in any of the
expected places.
@@ -40,6 +43,11 @@ func Detect(logger scribe.Emitter) packit.DetectFunc {
}

func WebRoot(workingDir string) (string, error) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this isn't part of this PR but I see that we never use the return string value. Maybe there is a plan to consume it somewhere in the future?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we use it in the other buildpack :)

@ctrox ctrox merged commit 8bb0706 into main Dec 15, 2023
5 checks passed
ctrox added a commit to ninech/buildpack-static-confgen that referenced this pull request Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants