Giter VIP home page Giter VIP logo

tcfcli's People

Contributors

alfredhuang211 avatar dorasang avatar ls-ggg avatar nevenmoore avatar tinafangkunding avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tcfcli's Issues

更新代码时报错:当前函数状态无法进行此操作

$ tcf deploy -f --template-file deploy.yaml 
deploy default begin
default testscf already exists, update it now
Deploy function 'testscf' failure. Error: 当前函数状态无法进行此操作,请在函数状态正常时重试。.
RequestId: b'7ce70235-2c12-4901-aba6-f48d6b87673d'

Potential dependency conflicts between tcf and click

Hi, as shown in the following full dependency graph of tcf, tcf requires click==6.7, tcf requires _ flask >=1.0.0,<2.0.0_ (flask 1.1.2 will be installed, i.e., the newest version satisfying the version constraint), and directed dependency flask 1.1.2 transitively introduces click >=5.1.

Obviously, there are multiple version constraints set for click in this project. However, according to pip's “first found wins” installation strategy, click 6.7 (i.e., the newest version satisfying constraint >=6.7,<1.3.0) is the actually installed version.

Although the first found package version click 6.7 just satisfies the later dependency constraint (click==6.7), such installed version is very close to the upper bound of the version constraint of click specified by flask 1.1.2.

Once flask upgrades,its newest version will be installed, as tcf does not specify the upper bound of version constraint for flask. Therefore, it will easily cause a dependency conflict (build failure), if the upgraded flask version introduces a higher version of click, violating its another version constraint >=6.7,<1.3.0.

According to the release history of flask, it habitually upgrates Click in its recent releases. For instance, flask 1.0 upgrated Click’s constraint from >=2.0 to >=4.0, and flask 1.1 upgrated Click’s constraint from >=4.0 to >=5.1.

As such, it is a warm warning of a potential dependency conflict issue for tcf.

Dependency tree

tcf  - 0.3.0
| +- certifi(install version:2020.4.5.1 version range:>=2018.4.16)
| +- chevron(install version:0.12.2 version range:>=0.12.0,<0.13.0)
| +- click(install version:6.7 version range:==6.7)
| +- cookiecutter(install version:1.6.0 version range:>=1.6.0,<1.7.0)
| | +- binaryornot(install version:0.4.4 version range:>=0.2.0)
| | | +- chardet(install version:3.0.4 version range:>=3.0.2)
| | +- click(install version:6.7 version range:>=5.0)
| | +- future(install version:0.18.2 version range:>=0.15.2)
| | +- jinja2(install version:2.11.2 version range:>=2.7)
| | | +- MarkupSafe(install version:2.0.0a1 version range:>=0.23)
| | +- jinja2-time(install version: version range:>=0.1.0)
| | +- poyo(install version:0.5.0 version range:>=0.1.0)
| | +- requests(install version:2.23.0 version range:>=2.18.0)
| | | +- certifi(install version:2020.4.5.1 version range:>=2017.4.17)
| | | +- chardet(install version:3.0.4 version range:>=3.0.2,<4)
| | | +- idna(install version:2.9 version range:>=2.5,<3)
| | | +- urllib3(install version:1.25.9 version range:>=1.21.1,<1.26)
| | +- whichcraft(install version:0.6.1 version range:>=0.4.0)
| +- cos-python-sdk-v5(install version:1.7.8 version range:>=1.5.8)
| | +- dicttoxml(install version:1.7.4 version range:*)
| | +- requests(install version:2.23.0 version range:>=2.8)
| | | +- certifi(install version:2020.4.5.1 version range:>=2017.4.17)
| | | +- chardet(install version:3.0.4 version range:>=3.0.2,<4)
| | | +- idna(install version:2.9 version range:>=2.5,<3)
| | | +- urllib3(install version:1.25.9 version range:>=1.21.1,<1.26)
| | +- six(install version:1.14.0 version range:*)
| +- docker(install version:4.2.0 version range:>=3.3.0)
| | +- requests (install version:2.23.0 version range:>=2.14.2)
| | | +- certifi(install version:2020.4.5.1 version range:>=2017.4.17)
| | | +- chardet(install version:3.0.4 version range:>=3.0.2,<4)
| | | +- idna(install version:2.9 version range:>=2.5,<3)
| | | +- urllib3(install version:1.25.9 version range:>=1.21.1,<1.26)
| | +- six (install version:1.14.0 version range:>=1.4.0)
| | +- websocket-client (install version:0.57.0 version range:>=0.32.0)
| | | +- six(install version:1.14.0 version range:*)
| +- flask(install version:1.1.2 version range:>=1.0.0,<2.0.0)
| | +- click(install version:6.7 version range:>=5.1)
| | +- itsdangerous(install version:1.1.0 version range:>=0.24)
| | +- Jinja2(install version:2.11.2 version range:>=2.10.1)
| | | +- MarkupSafe(install version:2.0.0a1 version range:>=0.23)
| | +- Werkzeug(install version:1.0.1 version range:>=0.15)
| +- jsonschema(install version:3.2.0 version range:>=3.0.1,<4.0.0)
| +- pathlib2(install version:2.3.5 version range:>=2.3.2)
| | +- six(install version:1.14.0 version range:*)
| +- ptvsd(install version:4.2.11b1 version range:>=4.2.0,<4.3.0)
| +- pyyaml(install version:5.3.1 version range:>=3.12)
| +- tencentcloud-sdk-python(install version:3.0.161 version range:>=3.0.30) 

Thanks for your help.
Best,
Neolith

不支持 nodejs12.16

scf 已支持 nodejs 12.16,而这个工具不支持,如果以后不维护的话,建议放开限制。

由于 serverless 权限过大,可以自由创建数据库等资源,运维说影响安全不让用 serverless deploy 命令,只能使用 scf deploy,所以需要使用这个工具。

tcf init --runtime nodejs12.16 --name testscf
Usage: tcf init [OPTIONS]

Error: Invalid value for "-r" / "--runtime": invalid choice: nodejs12.16. (choose from python3.6, python2.7, go1, php5, php7, nodejs6.10, nodejs8.9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.