-
Notifications
You must be signed in to change notification settings - Fork 0
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
pub publish bug #4
Comments
bug$ pub --trace 'publish' '--force'
|
FQ ?https://juejin.im/post/5c21d39ae51d4516da711073 confighttps://juejin.im/post/5d25a6d7f265da1bc07e6286
# Flutter China
# export PUB_HOSTED_URL=https://pub.flutter-io.cn
# export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
# flutter PATH & zsh
export PATH="$PATH:/Users/xgqfrms-mbp/Documents/Flutter/flutter/bin"
|
$ cat .zshrc
# Flutter China
export PUB_HOSTED_URL=https://pub.flutter-io.cn
# flutter PATH & zsh
export PATH="$PATH:/Users/xgqfrms-mbp/Documents/Flutter/flutter/bin"
|
$ flutter doctor -v
$ flutter packages pub publish --dry-run
$ pub publish --dry-run
# Package has 0 warnings.
$ pub publish
|
Using Flutter in Chinahttps://flutter.dev/community/china 所有 Flutter 镜像目前均不支持/也不应支持上传 packages 到 pub.dev 网站。https://flutter.cn/community/china#%E5%B7%B2%E7%9F%A5%E9%97%AE%E9%A2%98 |
source $HOME/.zshrc$ cat .zshrc
$ vim .zshrc
# flutter PATH & zsh
export PATH="$PATH:/Users/xgqfrms-mbp/Documents/Flutter/flutter/bin"
$ source $HOME/.zshrc
|
全局 FQ1. 取消镜像,不然不支持 pub# Flutter China
# export PUB_HOSTED_URL=https://pub.flutter-io.cn
# export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
# flutter PATH & zsh
export PATH="$PATH:/Users/xgqfrms-mbp/Documents/Flutter/flutter/bin"
检测$ flutter doctor -v
$ flutter packages pub publish --dry-run
$ pub publish --dry-run
# Package has 0 warnings.
$ pub publish
# 全局 VPN
$ curl google.com
# curl: (7) Failed to connect to www.google.com port 80: Operation timed out
$ curl xgqfrms.xyz
# html string
|
Last login: Fri Jun 19 01:42:35 on ttys004
➜ ~ export https_proxy=127.0.0.1:1086
➜ ~ curl www.google.com
curl: (7) Failed to connect to www.google.com port 80: Operation timed out
➜ ~
➜ ~ export http_proxy=127.0.0.1:1086
➜ ~ curl www.google.com
curl: (7) Failed to connect to 127.0.0.1 port 1086: Connection refused
what's wrong with that?$ vim ~/.zshrc
# SSR proxy alias ⚠️ 1086 端口号
# 添加如下代理 alias 配置(proxy 和 unproxy)
# alias proxy='export all_proxy=socks5://127.0.0.1:1080'
# proxy 端口根据实际设置, 如 1086
$ alias proxy='export all_proxy=socks5://127.0.0.1:1086'
$ alias unproxy='unset all_proxy'
# 保存退出
$ :wq!
# 刷新
$ source ~/.zshrc
|
SS proxy$ vim ~/.zshrc
# 添加如下代理 alias 配置(proxy 和 unproxy)
# alias proxy='export all_proxy=socks5://127.0.0.1:1080'
# proxy 端口根据实际设置, 如 1086
alias proxy='export all_proxy=socks5://127.0.0.1:1086'
alias unproxy='unset all_proxy'
# 保存退出
$ :wq!
# 刷新
$ source ~/.zshrc
# 测试 ip
$ curl ip.cn
# 当前 IP:112.64.xxx.xx 来自:上海市 联通
$ curl cip.cc
# 开启 proxy(执行 proxy alias)
$ proxy
$ curl ip.cn
$ curl cip.cc
terminal SS proxy$ curl google.com
# dart / flutter
$ pub publish
|
$ cat ~/.zshrc
|
how to using ShadowsocksX-NG-R8 in the terminal of macOS |
Proxifier 使用教程Proxifier允许不支持通过代理服务器工作的网络应用程序通过SOCKS或HTTPS代理和链进行操作。
https://blog.csdn.net/u013066730/article/details/88788191 Flutter 发布 package
https://www.cnblogs.com/yangyxd/p/9234405.html shit not workhttps://www.youtube.com/watch?v=DVPAuSizRsk ip# 测试 ip
$ curl ip.cn
# 当前 IP:112.64.xxx.xx 来自:上海市 联通
$ curl cip.cc
# 开启 proxy(执行 proxy alias)
$ proxy
$ curl ip.cn
$ curl cip.cc
$ curl ip.gs
$ curl ipinfo.io
$ curl myip.ipip.net
|
如何发布 dart packagepub-uploaderhttps://dart.cn/tools/pub/cmd/pub-uploader https://dart.cn/tools/pub/publishing $ pub uploader [options] {add/remove} <email>
$ pub uploader add xgqfrms@gmail.com
flutter packages |
终端访问外国网站(google)
https://cloud.tencent.com/developer/article/1443942 在线 terminal
google console git clone / VPS git cloneGoogle Cloud / Azure / AWSproxy ip |
how to publish a dart package using Github Actions? |
pub publish bug
Waiting for your authorization...
Authorization received, processing...
It looks like accounts.google.com is having some trouble.
Pub will wait for a while before trying to connect again.
The text was updated successfully, but these errors were encountered: