Skip to content

cmd/compile: set the proper export version number before Go 1.18 #47654

Closed

Description

@danscales

When we get closer to the beta for 1.18, we need to set the export version number to its new value,
iexportVersionGo1_18 = 2.

We are temporarily setting the export version back to 1 (iexportVersionGoPosCol, also iexportVersionGoGenerics, since generic functions/types are backward compatible) for ease of internal testing, especially given a lot of x/tools and third-party tools that will break on the new export version.

Activity

  1. added this to the Go1.18 milestone on Aug 11, 2021
  2. self-assigned this
    on Aug 11, 2021
  3. danscales commented on Aug 11, 2021

    @danscales
    ContributorAuthor

    https://go-review.googlesource.com/c/go/+/341211 is the change the needs to be mostly reverted to fix this issue.

  4. gopherbot commented on Aug 11, 2021

    @gopherbot
    Contributor

    Change https://golang.org/cl/341211 mentions this issue: [dev.typeparams] cmd/compile: change export version to 1.17 for testing

  5. added
    NeedsFixThe path to resolution is known, but the work has not been done.
    on Aug 12, 2021
  6. gopherbot commented on Oct 19, 2021

    @gopherbot
    Contributor

    Change https://golang.org/cl/357049 mentions this issue: cmd/compile: update the export version for generics

  7. danscales commented on Nov 9, 2021

    @danscales
    ContributorAuthor

    @findleyr Is there anything more on your side about the export version that you need to do? If so, I can assign this bug to you as a reminder. Otherwise, I think we can just close this issue, right?

  8. findleyr commented on Nov 9, 2021

    @findleyr
    Contributor

    Yes, I think I still need to clean up once this has had enough time to propagate. Reassigning to myself, but also removing the release-blocker label.

  9. findleyr commented on Nov 9, 2021

    @findleyr
    Contributor

    The top comment here looks wrong:

    When we get closer to the beta for 1.18, we need to set the export version number to its new value,
    iexportVersionGenerics = 3.

    We are temporarily setting the export version back to 2 (in dev.typeparams, soon to be merged to master) for ease of internal testing, especially given a lot of x/tools and third-party tools that will break on the new export version.

    We set it back to 1, and the new value will be 2. @danscales maybe amend?

  10. danscales commented on Nov 9, 2021

    @danscales
    ContributorAuthor

    OK, updated the top comment. And removed release-blocker.

    As an update, we have already change the export version in the compiler and x/tools, but there are some cleanup items that @findleyr still needs to do. However, no longer a release blocker for beta1.

  11. danscales commented on Jan 10, 2022

    @danscales
    ContributorAuthor

    @findleyr Can we close this now? I confirmed with @heschi that are internal testing has proceed along and went fine.

  12. findleyr commented on Jan 10, 2022

    @findleyr
    Contributor

    @danscales actually no, I just checked and there is still cleanup that needs to take place. Sending a CL now.

  13. gopherbot commented on Jan 10, 2022

    @gopherbot
    Contributor

    Change https://golang.org/cl/377554 mentions this issue: go/internal/gcimporter: set iexportVersionGenerics to 2

  14. locked and limited conversation to collaborators on Jun 23, 2023
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

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions