efabless / volare

Version manager (and builder) for the Google sky130 and gf180mcu open-source PDKs
Apache License 2.0
57 stars 8 forks source link

path option not working #77

Closed d-m-bailey closed 7 months ago

d-m-bailey commented 7 months ago

Description

volare path throws an error.

volare, version 0.13.0

Expected Behavior

Print the installed path.

Relevant command

volare path

Relevant log output

$ volare ls
In /home/mpw-9/pdks/volare/sky130/versions:
├── 1341f54f5ce0c4955326297f235e4ace1eb6d419 (2023.08.27)
├── 78b7bc32ddb4b6f14f76883c2e2dc5b5de9d1cbc (2023.07.10) (enabled)
└── e6f9c8876da77220403014b116761b0b2d79aab4 (2023.02.10)

$ volare path
Traceback (most recent call last):
  File "/home/.local/bin/volare", line 8, in <module>
    sys.exit(cli())
  File "/home/.local/lib/python3.7/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/.local/lib/python3.7/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/.local/lib/python3.7/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/.local/lib/python3.7/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/.local/lib/python3.7/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/.local/lib/python3.7/site-packages/volare/__main__.py", line 176, in path_cmd
    print(version.get_dir(pdk_root), end="")
  File "/home/.local/lib/python3.7/site-packages/volare/common.py", line 95, in get_dir
    return os.path.join(get_versions_dir(pdk_root, self.pdk), self.name)
  File "/usr/lib/python3.7/posixpath.py", line 94, in join
    genericpath._check_arg_types('join', a, *p)
  File "/usr/lib/python3.7/genericpath.py", line 149, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'NoneType'