Skip to content

[SR-12926] provide a way to get the SHA of the current package in code #4538

Open
@weissi

Description

@weissi
Previous ID SR-12926
Radar rdar://problem/63888891
Original Reporter @weissi
Type New Feature
Additional Detail from JIRA
Votes 2
Component/s Package Manager
Labels New Feature
Assignee None
Priority Medium

md5: c119e8705c814a44ed478dbb1dec3864

relates to:

  • SR-473 Add version constants to each package
  • SR-4265 [SwiftPM] CURRENT_PROJECT_VERSION should be defined on generated-xcodeproj

Issue Description:

This needs design of course but in certain cases it's really helpful if the binary contains the version (ie. the current SHA (+ a "dirty" marker if modified)) of its package in the binary. Even better if accessible in code.

Potentially we could even embed something like Package.resolved into the binary too so that every module could get the information for all packages.

See also:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions