-
Notifications
You must be signed in to change notification settings - Fork 80
Description
Looking at the package location and ref in metadata will not be sufficient to know where a package was fetched from if a Transfer operation has been run.
If the transfer was from Git to Git then the refs may be preserved, and this will surely be the most common case. But there are other transfers that can happen, such as transferring a package within a repository by changing its subdir key. In that case, old refs will point to a repo in which the given subdir does not exist.
I think we should specify, in package metadata, the full location + ref that was used to package each version, instead of just a top-level location. The top-level location field in metadata would remain, of course, because it's possible to process a transfer without actually publishing a new version.
Alternately, if we don't really care if the published version location is fully accurate, then perhaps we don't even store this information in the first place?