You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate internal callers off deprecated function wrappers
Rewrite every in-repo call site (production, tests, examples) from the
deprecated non-context wrappers to their Context variants, inserting
context.Background() to preserve behavior. Deprecated wrappers are left in
place so this is behavior-preserving and builds green on its own.
An AST codemod derives each transform from the wrapper body (single-statement,
Helper-prefixed multi-statement, and variadic forms) and applies it as a text
edit to the original call source, so existing arguments, inline comments, and
formatting are preserved. Signature-changing wrappers (ssh CheckSSH* handlers,
value-to-pointer, logger.Default) were migrated by hand.
// GetPrivateIpsOfEc2InstancesContextE gets the private IP address of the given EC2 Instance in the given region. Returns a map of instance ID to IP address.
// GetPublicIpsOfEc2InstancesContextE gets the public IP address of the given EC2 Instance in the given region. Returns a map of instance ID to IP address.
0 commit comments