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

flet: fix out of the box experience #279936

Merged
merged 4 commits into from
Mar 19, 2024
Merged

Conversation

lucasew
Copy link
Contributor

@lucasew lucasew commented Jan 10, 2024

Description of changes

Right now flet just tries to download the runtime bundle and fails, the objective of this PR is to fix that.

Basically I created this because flet changed a lot since I last tried in #251877

The plan here is to use their monorepo instead of the pypi packages, use a update script on flet-flutter-client and it should propagate to the python libraries so the core and the utilites (from the same repo) would always be synced.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Jan 10, 2024
@ofborg ofborg bot requested a review from heyimnova January 10, 2024 02:52
@lucasew lucasew changed the title [WIP] flet: fix out of the box experience flet: fix out of the box experience Jan 16, 2024
@lucasew lucasew marked this pull request as ready for review January 16, 2024 10:59
@lucasew
Copy link
Contributor Author

lucasew commented Jan 16, 2024

Result of nixpkgs-review pr 279936 run on x86_64-linux 1

4 packages failed to build:
  • python311Packages.flet
  • python311Packages.flet-runtime
  • python311Packages.flet-runtime.dist
  • python311Packages.flet.dist
6 packages built:
  • flet-client-flutter
  • flet-client-flutter.pubcache
  • python311Packages.flet-core
  • python311Packages.flet-core.dist
  • python312Packages.flet-core
  • python312Packages.flet-core.dist

@lucasew
Copy link
Contributor Author

lucasew commented Jan 16, 2024

Result of nixpkgs-review pr 279936 run on x86_64-linux 1

2 packages failed to build:
  • python311Packages.flet
  • python311Packages.flet.dist
8 packages built:
  • flet-client-flutter
  • flet-client-flutter.pubcache
  • python311Packages.flet-core
  • python311Packages.flet-core.dist
  • python311Packages.flet-runtime
  • python311Packages.flet-runtime.dist
  • python312Packages.flet-core
  • python312Packages.flet-core.dist

@lucasew
Copy link
Contributor Author

lucasew commented Jan 16, 2024

Result of nixpkgs-review pr 279936 run on x86_64-linux 1

10 packages built:
  • flet-client-flutter
  • flet-client-flutter.pubcache
  • python311Packages.flet
  • python311Packages.flet-core
  • python311Packages.flet-core.dist
  • python311Packages.flet-runtime
  • python311Packages.flet-runtime.dist
  • python311Packages.flet.dist
  • python312Packages.flet-core
  • python312Packages.flet-core.dist

1 similar comment
@lucasew
Copy link
Contributor Author

lucasew commented Jan 16, 2024

Result of nixpkgs-review pr 279936 run on x86_64-linux 1

10 packages built:
  • flet-client-flutter
  • flet-client-flutter.pubcache
  • python311Packages.flet
  • python311Packages.flet-core
  • python311Packages.flet-core.dist
  • python311Packages.flet-runtime
  • python311Packages.flet-runtime.dist
  • python311Packages.flet.dist
  • python312Packages.flet-core
  • python312Packages.flet-core.dist

@lucasew
Copy link
Contributor Author

lucasew commented Jan 17, 2024

How can I fix this ofborg issue?

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/3288

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/generic-error-with-ofborg/38498/1

@dotlambda
Copy link
Member

dotlambda commented Jan 21, 2024

How can I fix this ofborg issue?

I wasn't able to spot the issue. Maybe people experienced with Flutter like @hacker1024 can help?

@lucasew lucasew requested a review from dotlambda March 13, 2024 20:16
@lucasew
Copy link
Contributor Author

lucasew commented Mar 13, 2024

Result of nixpkgs-review pr 279936 run on x86_64-linux 1

4 packages failed to build:
  • python311Packages.flet
  • python311Packages.flet.dist
  • python312Packages.flet
  • python312Packages.flet.dist
11 packages built:
  • flet-client-flutter
  • flet-client-flutter.debug
  • flet-client-flutter.pubcache
  • python311Packages.flet-core
  • python311Packages.flet-core.dist
  • python311Packages.flet-runtime
  • python311Packages.flet-runtime.dist
  • python312Packages.flet-core
  • python312Packages.flet-core.dist
  • python312Packages.flet-runtime
  • python312Packages.flet-runtime.dist

@lucasew
Copy link
Contributor Author

lucasew commented Mar 14, 2024

Result of nixpkgs-review pr 279936 run on x86_64-linux 1

15 packages built:
  • flet-client-flutter
  • flet-client-flutter.debug
  • flet-client-flutter.pubcache
  • python311Packages.flet
  • python311Packages.flet-core
  • python311Packages.flet-core.dist
  • python311Packages.flet-runtime
  • python311Packages.flet-runtime.dist
  • python311Packages.flet.dist
  • python312Packages.flet
  • python312Packages.flet-core
  • python312Packages.flet-core.dist
  • python312Packages.flet-runtime
  • python312Packages.flet-runtime.dist
  • python312Packages.flet.dist

@ofborg ofborg bot requested a review from wegank March 14, 2024 01:12
@lucasew lucasew force-pushed the flet-oob branch 2 times, most recently from 836b938 to 16d9ea9 Compare March 19, 2024 18:21
@lucasew
Copy link
Contributor Author

lucasew commented Mar 19, 2024

Result of nixpkgs-review pr 279936 run on x86_64-linux 1

15 packages built:
  • flet-client-flutter
  • flet-client-flutter.debug
  • flet-client-flutter.pubcache
  • python311Packages.flet
  • python311Packages.flet-core
  • python311Packages.flet-core.dist
  • python311Packages.flet-runtime
  • python311Packages.flet-runtime.dist
  • python311Packages.flet.dist
  • python312Packages.flet
  • python312Packages.flet-core
  • python312Packages.flet-core.dist
  • python312Packages.flet-runtime
  • python312Packages.flet-runtime.dist
  • python312Packages.flet.dist

@wegank wegank marked this pull request as draft March 19, 2024 20:41
@wegank wegank changed the base branch from master to staging-next March 19, 2024 20:42
@wegank wegank marked this pull request as ready for review March 19, 2024 20:45
@wegank
Copy link
Member

wegank commented Mar 19, 2024

@ofborg build python311Packages.flet

@lucasew
Copy link
Contributor Author

lucasew commented Mar 19, 2024

@wegank why is your name on the commits? What did you change?

@ofborg ofborg bot added 2.status: merge conflict This PR has merge conflicts with the target branch and removed 2.status: merge conflict This PR has merge conflicts with the target branch labels Mar 19, 2024
@wegank
Copy link
Member

wegank commented Mar 19, 2024

I rebased this PR on staging-next because there are conflicts due to the mass Python update. My name isn't on the commits (check git log for that).

@ofborg ofborg bot requested a review from wegank March 19, 2024 21:10
@wegank wegank merged commit 5ce921d into NixOS:staging-next Mar 19, 2024
25 of 28 checks passed
@lucasew lucasew deleted the flet-oob branch March 20, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: python 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants