You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@yetus.apache.org by "Allen Wittenauer (Jira)" <ji...@apache.org> on 2022/05/04 19:45:00 UTC

[jira] [Commented] (YETUS-777) --version is broken in python programs

    [ https://issues.apache.org/jira/browse/YETUS-777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17531911#comment-17531911 ] 

Allen Wittenauer commented on YETUS-777:
----------------------------------------

Post-YETUS-1161, version detection needed to get revisited since it is now possible to get the version even while running from the raw repo.

> --version is broken in python programs
> --------------------------------------
>
>                 Key: YETUS-777
>                 URL: https://issues.apache.org/jira/browse/YETUS-777
>             Project: Yetus
>          Issue Type: Bug
>          Components: Precommit
>    Affects Versions: 0.9.0
>            Reporter: Akira Ajisaka
>            Assignee: Allen Wittenauer
>            Priority: Major
>              Labels: beginner
>
> I extracted 0.9.0-RC1 binary tarball and ran {{bin/jenkins-admin -V}}:
> {noformat}
> $ bin/jenkins-admin -V
> Traceback (most recent call last):
>   File "/Users/aajisaka/work/dist.apache.org/repos/dist/dev/yetus/0.9.0-RC1/apache-yetus-0.9.0/bin/../lib/precommit/jenkins-admin.py", line 147, in <module>
>     os.path.dirname(__file__), "../../VERSION"), 'r') as ver_file:
> IOError: [Errno 2] No such file or directory: '/Users/aajisaka/work/dist.apache.org/repos/dist/dev/yetus/0.9.0-RC1/apache-yetus-0.9.0/bin/../lib/precommit/../../VERSION'{noformat}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)