Skip to content

Cannot pull custom pub dependency from private github repository #6915

@treo

Description

@treo

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

I'm adding a custom pub dependency as documented at https://docs.flutterflow.io/concepts/custom-code/#add-packages-from-private-repositories

Image

I've tested that the dependency works fine in a local build, and the generated pubspec.yaml is identical online as it is locally (as checked with the show code functionality).

Clicking on the "Update dependencies to the latest version" button results in an infinite load.

When I try to trigger a github push from Flutterflow it complains that it fails to run "flutter pub get":

Image

Also all imports in custom code are now broken.

Expected Behavior

It should add the dependency.

Steps to Reproduce

1.Create a blank project to get going and connect it to github.
2. Create a flutter plugin from the template.
3. Push the flutter plugin to a private github repository
4. Create a fine grained access token that allows accessing that token (don't forget to add the Contents permission)
5. Add the dependeny on the "Project Dependencies -> Custom Pub Dependencies" page using the documented approach.
6. See that it can't push to github anymore nor does the update dependencies button ever finish. Also all imports in custom code are now broken.

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

ITFfhsrl25RNobwC+b6JccFKnmM4KW0cQYMzke5+cxAgIqLyD4kIP8zBP1daOOm5dAlYeVv8gn4x/sqKhYftFeQHAyqdGbZEzKtcbALwJX+RVIyTC5GCbURQBe9mJEuVy5mznQp4A7B0SVZm312qPPKtcHTYJIToNVc4RPj+BKzMnVLnAhm6Xn0Jg1ZSfCvr

Visual documentation

See current behavior section.

Environment

- FlutterFlow version: Latest
- Platform: Web
- Browser name and version: Chrome 144.0.7559.133 
- Operating system and version affected: Windows

Additional Information

This is currently a blocking issue, as we can't continue development without being able to use the proprietary native code integration.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions