Skip to content

Commit

Permalink
Fix installing dependencies on PHP image building
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Oct 8, 2024
1 parent b99c37e commit d1b3c8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions features/schedule/basic/feature.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ public static function check(

// Confirm simple list
$found = false;
$deadline = \microtime(true) + 10;
$findDeadline = \microtime(true) + 10;
find:
foreach ($client->listSchedules() as $schedule) {
if ($schedule->scheduleId === $scheduleId) {
$found = true;
break;
}
}
if (!$found and \microtime(true) < $deadline) {
if (!$found and \microtime(true) < $findDeadline) {
goto find;
}

Expand Down
2 changes: 1 addition & 1 deletion sdkbuild/php.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func BuildPhpProgram(ctx context.Context, options BuildPhpProgramOptions) (*PhpP
var cmd *exec.Cmd
// Setup required SDK version if specified
if options.Version != "" {
cmd = exec.CommandContext(ctx, "composer", "req", "temporal/sdk", options.Version, "-W", "--no-install")
cmd = exec.CommandContext(ctx, "composer", "req", "temporal/sdk", options.Version, "-W", "--no-install", "--ignore-platform-reqs")
cmd.Dir = dir
cmd.Stdin, cmd.Stdout, cmd.Stderr = os.Stdin, os.Stdout, os.Stderr
if err := cmd.Run(); err != nil {
Expand Down

0 comments on commit d1b3c8b

Please sign in to comment.