Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate name attribute on package dependencies #3641

Merged
merged 2 commits into from
Aug 4, 2021

Conversation

tomerd
Copy link
Contributor

@tomerd tomerd commented Jul 31, 2021

motivation: follow-on work to the change in 5.5 that allows users to not specify a name on the dependency, this soft-deprecates the ability to do so

changes:

  • emit a deprecation warning when using the name attribute on a dependency
  • refactor the dependency::name attribute to dependency::deprecatedName to reflect the fact it was deprecated and prevent using it in downstream logic
  • cleanup the internal API
  • cleanup and add tests

@tomerd
Copy link
Contributor Author

tomerd commented Jul 31, 2021

comes on top of #3635

@tomerd tomerd force-pushed the refactor/package-name branch from 0b67b56 to 2b87213 Compare July 31, 2021 04:10
@tomerd
Copy link
Contributor Author

tomerd commented Jul 31, 2021

@swift-ci please smoke test

@tomerd tomerd self-assigned this Jul 31, 2021
@tomerd tomerd force-pushed the refactor/package-name branch from 2b87213 to 57bf96e Compare August 4, 2021 01:29
@tomerd
Copy link
Contributor Author

tomerd commented Aug 4, 2021

@swift-ci please smoke test

@tomerd tomerd force-pushed the refactor/package-name branch 2 times, most recently from 5c0794c to 019d09f Compare August 4, 2021 01:57
@tomerd
Copy link
Contributor Author

tomerd commented Aug 4, 2021

@swift-ci please smoke test

@tomerd tomerd force-pushed the refactor/package-name branch from 019d09f to edeb78c Compare August 4, 2021 02:15
@tomerd
Copy link
Contributor Author

tomerd commented Aug 4, 2021

@swift-ci please smoke test

motivation: follow on work to the change in 5.5 that _allows_ users to not specify a name on the dependency, this soft-deprecates the ability to do so

changes:
* emit a deprecation warning when using the name attribute on a dependency (in the manifest)
* refactor the depedency::name attribute to "deprecatedName" to reflect the fact it was deprecated and prevert too much downstream logic
* cleanup the internal API
* cleanup and add tests
@tomerd tomerd force-pushed the refactor/package-name branch from edeb78c to 7fc19bd Compare August 4, 2021 16:46
@tomerd
Copy link
Contributor Author

tomerd commented Aug 4, 2021

@swift-ci please smoke test

@tomerd tomerd added the ready Author believes the PR is ready to be merged & any feedback has been addressed label Aug 4, 2021
@tomerd
Copy link
Contributor Author

tomerd commented Aug 4, 2021

@swift-ci please smoke test

}
}

func testLanguageStandards() {
guard Resources.havePD4Runtime else { return }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abertelrud removed these at it seems like leftover from before we removed PD4?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think you're correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready Author believes the PR is ready to be merged & any feedback has been addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants