Skip to content

api: link to previous message type package in API BUILD files.#9210

Merged
lizan merged 3 commits intoenvoyproxy:masterfrom
htuch:versionless-pkg
Dec 4, 2019
Merged

api: link to previous message type package in API BUILD files.#9210
lizan merged 3 commits intoenvoyproxy:masterfrom
htuch:versionless-pkg

Conversation

@htuch
Copy link
Member

@htuch htuch commented Dec 3, 2019

We need to include the descriptors from the previous message version in
the build. We opt to do this transitively; when you include v3 of a
package, you get the v2 via a transitive dep. This should work based on
alwayslink semantics for cc_library.

The computation of the deps is based on the previous_message_type
annotation, which will allow cross package migrations.

Part of #8082.

Risk level: Low
Testing: Disabled ip_tagging v2 descriptor hack, observed
version_integration_test. After the BUILD changes, this now passes
again.

Signed-off-by: Harvey Tuch htuch@google.com

We need to include the descriptors from the previous message version in
the build. We opt to do this transitively; when you include v3 of a
package, you get the v2 via a transitive dep. This should work based on
alwayslink semantics for cc_library.

The computation of the deps is based on the previous_message_type
annotation, which will allow cross package migrations.

Part of envoyproxy#8082.

Risk level: Low
Testing: Disabled ip_tagging v2 descriptor hack, observed
  version_integration_test. After the BUILD changes, this now passes
  again.

Signed-off-by: Harvey Tuch <htuch@google.com>
@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/.

🐱

Caused by: #9210 was opened by htuch.

see: more, trace.

@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/.

🐱

Caused by: #9210 was synchronize by htuch.

see: more, trace.

@repokitteh-read-only repokitteh-read-only bot removed the api label Dec 4, 2019
@lizan lizan merged commit 7f8fb95 into envoyproxy:master Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants