Skip to content

Commit

Permalink
fix(playwright): fix multi-line version matches in requirements files (
Browse files Browse the repository at this point in the history
  • Loading branch information
acodeninja authored Sep 12, 2024
1 parent 210a1b4 commit 82c3c5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion playwright/buildpack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ api = "0.8"
[buildpack]
id = "acodeninja/playwright"
name = "ACodeNinja Buildpack for Playwright"
version = "2.1.0"
version = "2.1.1"
homepage = "https://github.com/acodeninja/buildpacks/tree/main/playwright"

[[buildpack.licenses]]
Expand Down
4 changes: 3 additions & 1 deletion playwright/fixtures/python-pip/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
pytest
playwright==1.42.0
pytest-playwright
# playwright
boto3==1.35.17
playwright==1.45.0
2 changes: 1 addition & 1 deletion playwright/playwright.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func ResolvePlaywrightVersion(logger bard.Logger) string {

// Find in requirements.txt
requirementsPattern := regexp.MustCompile("^requirement.+\\.txt")
requirementsPatternVersion := regexp.MustCompile("playwright[^0-9]+([0-9.]+)")
requirementsPatternVersion := regexp.MustCompile("playwright[^0-9\n]+([0-9.]+)")

files, err := os.ReadDir("/workspace")
if err == nil {
Expand Down

0 comments on commit 82c3c5c

Please sign in to comment.