onflow / flow-cli

The Flow CLI is a command-line interface that provides useful utilities for building Flow applications
https://onflow.org
Apache License 2.0
206 stars 62 forks source link

add flow package depdendenices into `version` #1467

Closed ianthpun closed 3 months ago

ianthpun commented 3 months ago

Closes #1465

Description

example:

Flow Package Dependencies: 
github.com/onflow/atree: v0.6.0
github.com/onflow/cadence: v0.42.9
github.com/onflow/cadence-tools/languageserver: v0.33.3
github.com/onflow/cadence-tools/lint: v0.14.1
github.com/onflow/cadence-tools/test: v0.14.6
github.com/onflow/crypto: v0.25.0
github.com/onflow/fcl-dev-wallet: v0.7.4
github.com/onflow/flixkit-go: v1.1.2
github.com/onflow/flow-cli: (devel)
github.com/onflow/flow-cli/flowkit: v1.11.0
github.com/onflow/flow-core-contracts/lib/go/contracts: v1.2.4-0.20231016154253-a00dbf7c061f
github.com/onflow/flow-core-contracts/lib/go/templates: v1.2.4-0.20231016154253-a00dbf7c061f
github.com/onflow/flow-emulator: v0.61.1
github.com/onflow/flow-ft/lib/go/contracts: v0.7.1-0.20230711213910-baad011d2b13
github.com/onflow/flow-go: v0.33.2-0.20240306234901-64ab8d27ea30
github.com/onflow/flow-go-sdk: v0.46.0
github.com/onflow/flow-nft/lib/go/contracts: v1.1.0
github.com/onflow/flow/protobuf/go/flow: v0.3.7
github.com/onflow/flowkit: v1.17.1
github.com/onflow/nft-storefront/lib/go/contracts: v0.0.0-20221222181731-14b90207cead
github.com/onflow/sdks: v0.5.0
github.com/onflow/wal: v0.0.0-20240208022732-d756cd497d3b

works with --format=json as well

2024/03/20 09:15:17 {"version":"undefined","commit":"undefined","dependencies":[{"package":"github.com/onflow/atree","version":"v0.6.0"},{"package":"github.com/onflow/cadence","version":"v0.42.9"},{"package":"github.com/onflow/cadence-tools/languageserver","version":"v0.33.3"},{"package":"github.com/onflow/cadence-tools/lint","version":"v0.14.1"},{"package":"github.com/onflow/cadence-tools/test","version":"v0.14.6"},{"package":"github.com/onflow/crypto","version":"v0.25.0"},{"package":"github.com/onflow/fcl-dev-wallet","version":"v0.7.4"},{"package":"github.com/onflow/flixkit-go","version":"v1.1.2"},{"package":"github.com/onflow/flow-cli","version":"(devel)"},{"package":"github.com/onflow/flow-cli/flowkit","version":"v1.11.0"},{"package":"github.com/onflow/flow-core-contracts/lib/go/contracts","version":"v1.2.4-0.20231016154253-a00dbf7c061f"},{"package":"github.com/onflow/flow-core-contracts/lib/go/templates","version":"v1.2.4-0.20231016154253-a00dbf7c061f"},{"package":"github.com/onflow/flow-emulator","version":"v0.61.1"},{"package":"github.com/onflow/flow-ft/lib/go/contracts","version":"v0.7.1-0.20230711213910-baad011d2b13"},{"package":"github.com/onflow/flow-go","version":"v0.33.2-0.20240306234901-64ab8d27ea30"},{"package":"github.com/onflow/flow-go-sdk","version":"v0.46.0"},{"package":"github.com/onflow/flow-nft/lib/go/contracts","version":"v1.1.0"},{"package":"github.com/onflow/flow/protobuf/go/flow","version":"v0.3.7"},{"package":"github.com/onflow/flowkit","version":"v1.17.1"},{"package":"github.com/onflow/nft-storefront/lib/go/contracts","version":"v0.0.0-20221222181731-14b90207cead"},{"package":"github.com/onflow/sdks","version":"v0.5.0"},{"package":"github.com/onflow/wal","version":"v0.0.0-20240208022732-d756cd497d3b"}]}

For contributor use:

codecov-commenter commented 3 months ago

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 40.06%. Comparing base (86c91f4) to head (824969c).

Files Patch % Lines
internal/command/result.go 0.00% 3 Missing :warning:
internal/command/command.go 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1467 +/- ## ======================================= Coverage 40.06% 40.06% ======================================= Files 51 51 Lines 2908 2908 ======================================= Hits 1165 1165 Misses 1591 1591 Partials 152 152 ``` | [Flag](https://app.codecov.io/gh/onflow/flow-cli/pull/1467/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onflow) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/onflow/flow-cli/pull/1467/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onflow) | `40.06% <0.00%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onflow#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.