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

Could not find a file named "flare_dart/pubspec.yaml" #114

Open
JPyke3 opened this issue Jun 27, 2019 · 2 comments
Open

Could not find a file named "flare_dart/pubspec.yaml" #114

JPyke3 opened this issue Jun 27, 2019 · 2 comments

Comments

@JPyke3
Copy link

JPyke3 commented Jun 27, 2019

Hi all,

Detailed below is the issue.

Problem

Im having an issue trying to run the dev branch. My problem is that pub cant even find pubspec.yaml file. This is the output (I had to redact the name of the flutter project for copyright reasons):

Running "flutter pub get" in xxxxxx...       
Could not find a file named "flare_dart/pubspec.yaml" in git://github.com/2d-inc/Flare-Flutter.git 8dbfc82bc7f94c721efaeff904b4388d222c7919.
pub get failed (1)
exit code 1

Interestingly, the code towards the end 8dbfc82bc7f94c721efaeff904b4388d222c7919 looked to me like a commit ID. However, i couldnt find that on this repository. It took some googling but I found out that it is in fact this commit from a fork of the main flutter repo. I was pretty confused by that and didnt know where to go from it. Just was worth mentioning

Attempted Fixes

  • First thing i did was remove the reference to the dev branch, i thought maybe something was up there, Sure enough when i commented out the ref: dev from the dependency it worked, it found the yaml file on the master branch. However, of course i want the dev version.
  • Next thing, I checked to see if this was having with other flutter repos. However strange enough it really only seemed to be caused by this repo.

I figured I would take it to you guys directly first. However if you guys are more convinced this is a issue with Flutter itself then let me know, ill write the appropriate issue there.

Edit: Forgot to add my code

Whoops. Forgot to write what i actually had written... This is located in my projects pubspec.yaml

flare_flutter:
  git: 
    url: git://github.com/2d-inc/Flare-Flutter.git
    ref: dev
    path: flare_flutter

I have also tried

  flare_flutter:
    git: 
      url: https://github.com/2d-inc/Flare-Flutter.git
      ref: dev
      path: flare_flutter
@luigi-rosso
Copy link
Contributor

I wonder if at some point some incorrect reference got cached (like the one from master) and is no longer updating. You should only use master when you check the repository out locally and reference it via the path, as it internally references flare_dart via the path.

I'd try doing a flutter clean and then try changing the ref to the latest commit on dev:

flutter clean

Edit pubspec.yaml Flare-Flutter reference:

flare_flutter:
    git: 
      url: git://github.com/2d-inc/Flare-Flutter.git
      ref: 01387cdb2df3c46119179feacae43f28f2b11257
      path: flare_flutter

Update references:

flutter pub get

Now finally try running again. The latest dev seems to be working for me locally. If you're still seeing this issue after all the steps above, would you mind sharing the codebase (or an example repro) with me?

@944095635
Copy link

944095635 commented Mar 6, 2024

I have encountered the same problem.

`
app_push:

git: 

  url: https://git.*.com/app-push.git

  path: packages/app_push

`

`
Resolving dependencies...

Could not find a file named "packages/app_push/pubspec.yaml" in https://git.***.com/app-push.git

47c652ab1ebf8afe6b646a46c7d61d5739ee1189.

exit code 1

`

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