gpt4 book ai didi

How do I pull Flutter 3.10.7 with subosito/flutter-action?(如何用俯卧位/扑翼动作拉动扑翼3.10.7?)

转载 作者:bug小助手 更新时间:2023-10-26 21:11:30 26 4
gpt4 key购买 nike



I am using GitHub actions to build my Flutter app and I use subosito/flutter-action@v2 to pull down Flutter. I am not able to pull the Flutter version 3.10.7 because it is not setup in a channel. I've tried using the channels 'stable' and 'any' and it still does not work. Is there a way to pull version 3.10.7?

我正在使用GitHub的动作来构建我的颤动应用程序,并且我使用subosito/fltter-action@v2来拉下颤动。我无法拉出颤振版本3.10.7,因为它没有设置在通道中。我试过使用“稳定”和“任何”频道,但仍然不起作用。有没有办法拉出3.10.7版?


Run subosito/flutter-action@v2
Run $GITHUB_ACTION_PATH/setup.sh -p -c '/Users/runner/hostedtoolcache/flutter/:channel:-:version:-:arch:' -k 'flutter-:os:-:channel:-:version:-:arch:-:hash:' -n '3.10.7' -a 'X64' any
Unable to determine Flutter version for channel: any version: 3.10.7 architecture: x64
Error: Process completed with exit code 1.

更多回答

I believe you asked the question on GitHub as well but here's the workaround our team found if anyone else is looking for it: github.com/subosito/flutter-action/issues/…

我相信你也在giHub上问过这个问题,但如果其他人在寻找它,我们的团队找到了解决办法:githeb.com/subosito/fltter-action/Issues/…

@rhpekarek I think your answer is correct and would be happy to mark it as the correct answer if you change your comment to an answer.

@rhpekarek我认为你的答案是正确的,如果你把你的评论改为答案,我很乐意把它标记为正确答案。

优秀答案推荐

Quoting the original answer from GitHub: https://github.com/subosito/flutter-action/issues/242#issuecomment-1699782139

引用GitHub的原始答案:https://github.com/subosito/flutter-action/issues/242#issuecomment-1699782139


To solve this we are using this action to set the flutter version to 3.10.6, and then manually changing to the flutter directory and checking out 3.10.7 from there.

为了解决此问题,我们使用此操作将颤振版本设置为3.10.6,然后手动更改到颤振目录并从那里检出3.10.7。


- name: 'Set Flutter 3.10.6'
uses: subosito/flutter-action@v2
with:
flutter-version: 3.10.6
- name: 'Checkout Flutter 3.10.7'
shell: bash
run: |
cd $FLUTTER_ROOT;
git fetch --tags;
git checkout 3.10.7;
flutter --version;



I see flutter 3.10.7 on the branch flutter-3.10-candidate.1: that is not part of the three supported channels: stable, beta, master

我在分支上看到颤动3.10.7-3.10-候选1:这不是支持的三个通道的一部分:稳定、测试版、主控


So for now, unless specifying directly the commit e285328, that tag (created 3 weeks ago, mid-Aug. 2023) is not accessible by subosito/flutter-action@v1.

因此,目前,除非直接指定提交e285328,否则该标记(创建于3周前,8月中旬)。2023)不能通过subosito/fltter-action@v1访问。


更多回答

Good catch. Upvoted.

接得好。票数上升了。

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com