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

Support accepted kitfile names #42

Merged
merged 2 commits into from
Feb 26, 2024
Merged

Support accepted kitfile names #42

merged 2 commits into from
Feb 26, 2024

Conversation

gorkem
Copy link
Contributor

@gorkem gorkem commented Feb 24, 2024

Adds a method to find the accepted variations of the default kit file name on the context directory. Starts using it on build command.

Updates the name of the default kit file const.

Adds a method to find the accepted variations of
the default kit file name on the context directory.
Starts using it on build command.

Updates the name of the default kit file const.
Comment on lines 60 to 65
for _, fileName := range defaultKitFileNames {
if _, exists := PathExists(filepath.Join(contextDir, fileName)); exists {
return path.Join(contextDir, fileName)
}
}
return path.Join(contextDir, constants.DefaultKitFileName)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
for _, fileName := range defaultKitFileNames {
if _, exists := PathExists(filepath.Join(contextDir, fileName)); exists {
return path.Join(contextDir, fileName)
}
}
return path.Join(contextDir, constants.DefaultKitFileName)
for _, fileName := range defaultKitFileNames {
if _, exists := PathExists(filepath.Join(contextDir, fileName)); exists {
return filepath.Join(contextDir, fileName)
}
}
return filepath.Join(contextDir, constants.DefaultKitFileName)

@gorkem gorkem merged commit 99b0d83 into main Feb 26, 2024
1 check passed
@gorkem gorkem deleted the kitfile-names branch February 26, 2024 15:34
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.

3 participants