Skip to content

Commit

Permalink
pub2nix: Fix language version regex on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
hacker1024 committed Jan 14, 2024
1 parent dd5621d commit ee18b58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/build-support/dart/pub2nix/package-config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ in
fi
languageConstraint="$(yq -r .environment.sdk "''${packageSources["$package"]}/''${packageRoots["$package"]}/pubspec.yaml")"
if [[ "$languageConstraint" =~ ^[[:space:]]*(\^|>=|>|)[[:space:]]*([[:digit:]]+\.[[:digit:]]+)\.[[:digit:]]+.*$ ]]; then
if [[ "$languageConstraint" =~ ^[[:space:]]*(\^|>=|>)?[[:space:]]*([[:digit:]]+\.[[:digit:]]+)\.[[:digit:]]+.*$ ]]; then
languageVersionJson="\"''${BASH_REMATCH[2]}\""
elif [ "$languageConstraint" = 'any' ]; then
languageVersionJson='null'
Expand Down

0 comments on commit ee18b58

Please sign in to comment.