Skip to content

Commit

Permalink
chore: Add deprecation Warning for Go Dep builder (#342)
Browse files Browse the repository at this point in the history
* chore: Add deprecation Warning for Go Dep builder

* Update aws_lambda_builders/workflows/go_dep/workflow.py

Co-authored-by: Chris Rehn <crehn@outlook.com>

Co-authored-by: Jacob Fuss <jfuss@users.noreply.github.com>
Co-authored-by: Chris Rehn <crehn@outlook.com>
  • Loading branch information
3 people authored Mar 15, 2022
1 parent 908ad5f commit e5df89c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws_lambda_builders/workflows/go_dep/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""

import logging
import os
from warnings import warn

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

def __init__(self, source_dir, artifacts_dir, scratch_dir, manifest_path, runtime=None, osutils=None, **kwargs):

warn(f"{self.__class__.__name__} will be removed on April 11, 2022.", DeprecationWarning, stacklevel=2)
super(GoDepWorkflow, self).__init__(
source_dir, artifacts_dir, scratch_dir, manifest_path, runtime=runtime, **kwargs
)
Expand Down

0 comments on commit e5df89c

Please sign in to comment.