Skip to content

Remove build date from --version #25812

Closed

Description

@brson

I added this some months ago because I thought it would help stem confusion about the reported commit date when it happens to be a few days behind the release artifacts. I no longer think this is a great idea for two reasons:

  1. This date is not guaranteed to be the same across platforms. There have been occasions when the builds were spread across multiple days. Because these strings are not guaranteed to be the same one can't compare the output of two rustc --version invocations to check for equivalence, which is something I have wanted to do (I think one of my tools has to frob this string to eliminate the build date). Fixing this would require more complexity in the buildbot config than I'm comfortable with atm.

  2. The commit date for nightlies should never actually be more than 1-2 days behind the distribution date since the head commit is always a merge commit. The original motivation for adding the build date may not have been very strong.

Activity

  1. brson commented on May 27, 2015

    @brson
    ContributorAuthor

    In some sense this is a stable breaking change since tools do parse the output of --version. I think we can get away with it though. cc @alexcrichton

  2. alexcrichton commented on May 27, 2015

    @alexcrichton
    Member

    Yeah I agree with the rationale here, and I also agree that I think we can get away with it.

  3. added a commit that references this issue on May 27, 2015
    c408667
  4. added a commit that references this issue on Jun 2, 2015
    4f5a744
  5. nrc commented on Jun 4, 2015

    @nrc
    Member

    We should be advertising these changes more widely - anything that could break anything should be at least posed on internals and give some notice that things will change. I agree with the change here, but it would be nice to update my scripts in advance rather than after a few days of them being broken.

  6. DanielKeep commented on Jun 4, 2015

    @DanielKeep
    Contributor

    Well great, now I have to get the build date some other way for my rustup.ps1 script.

    I actually did notice that the reported build date and the Last-Modified timestamp on the downloads were out a bit, so I was fuzzing them. I suppose I can just grab the timestamp from the compiler executable itself.

    Ah well. :)

  7. added a commit that references this issue on Jun 10, 2015
    48ff33c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions