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

[auto] Add php detector #2390

Merged
merged 2 commits into from
Oct 29, 2024
Merged

[auto] Add php detector #2390

merged 2 commits into from
Oct 29, 2024

Conversation

mikeland73
Copy link
Contributor

@mikeland73 mikeland73 commented Oct 28, 2024

Summary

Add php detector

How was it tested?

  • unit tests
  • devbox init --auto

@mikeland73 mikeland73 requested a review from savil October 28, 2024 21:49
Copy link
Collaborator

@savil savil left a comment

Choose a reason for hiding this comment

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

thanks for adding tests!

Comment on lines 30 to 35
dir := t.TempDir()
err := os.WriteFile(filepath.Join(dir, "composer.json"), []byte(`{
"require": {
"php": "^8.1"
}
}`), 0644)
Copy link
Collaborator

Choose a reason for hiding this comment

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

suggest looking into using https://pkg.go.dev/testing/fstest

@mikeland73 mikeland73 merged commit 1f4db4a into main Oct 29, 2024
29 checks passed
@mikeland73 mikeland73 deleted the landau/add-php-detector branch October 29, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants