You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "bgoldman-videoamp (via GitHub)" <gi...@apache.org> on 2023/02/06 06:40:36 UTC

[GitHub] [airflow-client-go] bgoldman-videoamp opened a new issue, #41: go get github.com/apache/airflow-client-go@latest gives me v0.0.0, not v2.5.0.

bgoldman-videoamp opened a new issue, #41:
URL: https://github.com/apache/airflow-client-go/issues/41

   I want to use the current version (v2.5.0), but using `go get github.com/apache/airflow-client-go@latest` as of today gives me `v0.0.0-20230203175943-7af9875e7d4c`.  It definitely appears out of sync with the latest version as `NewClearTaskInstance()` function is missing and in addition the fields for the`ClearInstance` struct appear out of sync with those of the current version.
   
   go version: go1.19.5 darwin/arm64


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow-client-go] pierrejeambrun commented on issue #41: `go get github.com/apache/airflow-client-go@latest` yields outdated `github.com/apache/airflow-client-go/airflow` subpackage

Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on issue #41:
URL: https://github.com/apache/airflow-client-go/issues/41#issuecomment-1426180522

   Hello @bgoldman-videoamp,
   
   Thank you for reporting this. We are currently working on the release process of this package and your feedback is really welcome.
   
   ### Out of think submodule
   
   I think the intent of this top level module was to have a way to actually test the client, using [client_test.go](https://github.com/apache/airflow-client-go/blob/main/client_test.go). As you can see in the [go.mod](https://github.com/apache/airflow-client-go/blob/main/go.mod) it also depends on `testify` test library, so this will also add this unnecessary dependency to your project. There is no reason for airflow client to require this extra test dependency for production. (or add test code etc.)
   
   You can install directly the submodule:
   ```
   go get github.com/apache/airflow-client-go/airflow/@latest
   ```
   
   In this testing context, it explains why the top level dependency was almost never updated, the `replace` directive was enough for it to work as expected.
   
   Nonetheless it is really easy to update it, here is a PR for that, also adding install instructions https://github.com/apache/airflow-client-go/pull/42 
   
   ### II Tags Convention
   We followed the same tagging strategy that we use for airflow core and other api clients. Indeed, for Go It looks like tag needs to start with `v...` to be recognized as version for most tools. For now you can still use the hash commit to install a specific tag if needed (`go get github.com/apache/airflow-client-go/airflow/@<hashcommit>`), but we might want to change the way we tag release for Go client.
   
   I will open a separate PR to suggest this change.
   
   Thanks
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow-client-go] Rick-xuy commented on issue #41: `go get github.com/apache/airflow-client-go@latest` yields outdated `github.com/apache/airflow-client-go/airflow` subpackage

Posted by "Rick-xuy (via GitHub)" <gi...@apache.org>.
Rick-xuy commented on issue #41:
URL: https://github.com/apache/airflow-client-go/issues/41#issuecomment-1434599106

   I ran into a similar issue here. It seems that `airflow` is a separate module under repo `github.com/apache/airflow-client-go`. As far as I know, tags for submodule `airflow` should be like `airflow/v2.5.0` to enable downstream to correctly get `v2.5.0` of submodule `github.com/apache/airflow-client-go/airflow`. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow-client-go] bgoldman-videoamp commented on issue #41: go get github.com/apache/airflow-client-go@latest gives me v0.0.0, not v2.5.0.

Posted by "bgoldman-videoamp (via GitHub)" <gi...@apache.org>.
bgoldman-videoamp commented on issue #41:
URL: https://github.com/apache/airflow-client-go/issues/41#issuecomment-1419616306

   So a closer look shows that the version issue is a rather superficial one (see https://github.com/opensearch-project/opensearch-go/issues/73 for a similar issue.  All you need to do is set the tag `2.5.0` to `v2.5.0`.  The real issue at hand is that the subpackage `github.com/apache/airflow-client-go/airflow` installed is out of date.  When `go get github.com/apache/airflow-client-go@latest` is run, the package version for the subpackage is `v0.0.0-20200725194829-781c285536c1` when it should be `v0.0.0-20230203175943-7af9875e7d4c`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org