You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix bug in metaflow version when public=True (#2539)
`metaflow_version.get_version(public=True)` doesn't return the public
version if executed within a metaflow step. This is because, we return
the version in the `INFO` file directly without any parsing. This PR
addresses that.
Flow to reproduce the issue:
```python
from metaflow import FlowSpec, step, conda
class HelloFlow(FlowSpec):
@conda()
@step
def start(self):
from metaflow import metaflow_version
version = metaflow_version.get_version(public=True)
print(f"Metaflow version: {version}")
self.next(self.end)
@step
def end(self):
print("HelloFlow is all done.")
if __name__ == "__main__":
HelloFlow()
```
0 commit comments