Skip to content

Fix generate version code to generate _version.py instead of version.py#1187

Open
AbishekS wants to merge 1 commit intometa-pytorch:mainfrom
AbishekS:export-D91055760
Open

Fix generate version code to generate _version.py instead of version.py#1187
AbishekS wants to merge 1 commit intometa-pytorch:mainfrom
AbishekS:export-D91055760

Conversation

@AbishekS
Copy link
Copy Markdown
Contributor

@AbishekS AbishekS commented Jan 20, 2026

No description provided.

Summary:
Internal
**Problem:**
Issue workplace post https://fb.workplace.com/groups/140700188041197/posts/1120600273384512/?comment_id=1120754030035803&reply_comment_id=1120825080028698

torchx image internally is looking for 
`ghcr.io/pytorch/torchx:0.8.0dev0+fb.dcb00c35540d`

**Fix:**
- Instead of generating the version.py we will generate the _version.py. This file will hold the VERSION used by OSS. And the generated one will hold the VERSION used by meta. 
- The original BASE_VERSION is moved to _base_version.py which is shared by OSS in _version.py and by fb in version_gen.py. 
- So this means the version.py will go back to being shared by OSS and fb as well as generating this is a very bad way to do this.

Differential Revision: D91055760
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Jan 20, 2026

@AbishekS has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91055760.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant