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

Can not import from github #1556

Closed
fu89-team opened this issue Mar 14, 2024 · 6 comments
Closed

Can not import from github #1556

fu89-team opened this issue Mar 14, 2024 · 6 comments

Comments

@fu89-team
Copy link

What happened?

I want to get this commit but it is not released.
#1524
I try to install from github but it does not work.
my-project-workspace: git: url: https://github.com/realm/realm-dart.git ref: main

I can run `flutter pub get` successfully but can not import into my dart file.

Repro steps

I try to install from github but it does not work.
my-project-workspace: git: url: https://github.com/realm/realm-dart.git ref: main

I can run `flutter pub get` successfully but can not import into my dart file.

Version

1.9.0

What Atlas Services are you using?

Local Database only

What type of application is this?

Flutter Application

Client OS and version

Android 14

Code snippets

No response

Stacktrace of the exception/crash you're getting

No response

Relevant log output

No response

Copy link

sync-by-unito bot commented Mar 14, 2024

➤ PM Bot commented:

Jira ticket: RDART-967

@nielsenko
Copy link
Contributor

nielsenko commented Mar 14, 2024

That is correct. Currently you cannot use github refs to import realm.

There are a couple of reasons.

  • For one we use relative paths between projects on github until just before release. We will soon switch to using pubspec_overrides.yaml (maintained with melos).
  • The binary build on S3 may not match a particular commit. You really need to build the native binaries locally.

@nielsenko
Copy link
Contributor

If it is any comfort, the next release is closing up.

@nirinchev
Copy link
Member

Closing this as we don't plan to focus on this in the near future. While we do want to eventually be able to build from github directly, as Kasper said, the challenges around ensuring we have native binaries for every commit or having those automatically get built on developers' machines are not trivial.

@nirinchev nirinchev closed this as not planned Won't fix, can't repro, duplicate, stale Mar 14, 2024
@fu89-team
Copy link
Author

Hope to release a new version soon.
It affects my entire project.

@nirinchev
Copy link
Member

Can you elaborate on this? How does the new version affect your project and what is the issue with the current stable release?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants