Skip to content

deprecate name attribute on package dependencies#3641

Merged
tomerd merged 2 commits into
swiftlang:mainfrom
tomerd:refactor/package-name
Aug 4, 2021
Merged

deprecate name attribute on package dependencies#3641
tomerd merged 2 commits into
swiftlang:mainfrom
tomerd:refactor/package-name

Conversation

@tomerd

@tomerd tomerd commented Jul 31, 2021

Copy link
Copy Markdown
Contributor

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

tomerd commented Jul 31, 2021

Copy link
Copy Markdown
Contributor Author

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

tomerd commented Jul 31, 2021

Copy link
Copy Markdown
Contributor Author

@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

tomerd commented Aug 4, 2021

Copy link
Copy Markdown
Contributor Author

@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

tomerd commented Aug 4, 2021

Copy link
Copy Markdown
Contributor Author

@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

tomerd commented Aug 4, 2021

Copy link
Copy Markdown
Contributor Author

@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

tomerd commented Aug 4, 2021

Copy link
Copy Markdown
Contributor Author

@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

tomerd commented Aug 4, 2021

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test

}

func testLanguageStandards() {
guard Resources.havePD4Runtime else { return }

Copy link
Copy Markdown
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
Copy Markdown
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