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

Pub: command not found #54

Open
maxpill opened this issue May 24, 2022 · 3 comments
Open

Pub: command not found #54

maxpill opened this issue May 24, 2022 · 3 comments

Comments

@maxpill
Copy link

maxpill commented May 24, 2022

remote: -----> Copy Dart binaries to app root
remote: -----> Dart cmd found at -rwx------ 1 u54379 dyno 40473040 May 24 09:46 /app/dart-sdk/bin/dart
remote: -----> Dart reports version: Dart SDK version: 2.17.1 (stable) (Tue May 17 17:58:21 2022 +0000) on "linux_x64"
remote: *** Found pubspec.yaml in /tmp/build_3c2b97e0/./api
remote: *** Running pub get
remote: /tmp/codon/tmp/buildpacks/19eae438cd2c24c0d0c9839b8cf39e357205c/bin/compile: line 43: pub: command not found
remote:  !     Push rejected, failed to compile Dart app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !	Push rejected to Heroku-project.
remote: 

It seems like a problem with path to the Dart SDK. Im using Dart SDK version: 2.17.1 (stable).

@Becca-Saka
Copy link

Becca-Saka commented May 25, 2022

I have the same issue as well

@Becca-Saka
Copy link

@maxpill I tried to figure out what was wrong, apparently the command has changed from

pub get -> dart pub get.

I forked this repo and made the adjustment. It worked on my side maybe you should try it out
https://github.com/Becca-Saka/heroku-buildpack-dart

@samuelezedi
Copy link

#54 (comment)

thank you for this.

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

No branches or pull requests

3 participants