Skip to content

Commit e5df89c

Browse files
jfussChris Rehn
andauthored
chore: Add deprecation Warning for Go Dep builder (#342)
* chore: Add deprecation Warning for Go Dep builder * Update aws_lambda_builders/workflows/go_dep/workflow.py Co-authored-by: Chris Rehn <[email protected]> Co-authored-by: Jacob Fuss <[email protected]> Co-authored-by: Chris Rehn <[email protected]>
1 parent 908ad5f commit e5df89c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws_lambda_builders/workflows/go_dep/workflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44

55
import logging
6-
import os
6+
from warnings import warn
77

88
from aws_lambda_builders.actions import CopySourceAction
99
from aws_lambda_builders.workflow import BaseWorkflow, Capability
@@ -27,7 +27,7 @@ class GoDepWorkflow(BaseWorkflow):
2727
EXCLUDED_FILES = (".aws-sam", ".git")
2828

2929
def __init__(self, source_dir, artifacts_dir, scratch_dir, manifest_path, runtime=None, osutils=None, **kwargs):
30-
30+
warn(f"{self.__class__.__name__} will be removed on April 11, 2022.", DeprecationWarning, stacklevel=2)
3131
super(GoDepWorkflow, self).__init__(
3232
source_dir, artifacts_dir, scratch_dir, manifest_path, runtime=runtime, **kwargs
3333
)

0 commit comments

Comments
 (0)