-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DeprecationWarning: datetime.datetime.utcnow() on version 1.3.48 (using python 3.12) #733
Comments
Same here. terraform-compliance version: |
Hi, is there any update on this please ? |
Sorry for this guys, let me update it. |
Just released 1.3.49b1, have a try and let me know if you are still having problems, based on your response, I'll remove beta. |
I seem to still be seeing the same warnings on the beta (Python 3.12):
|
Deprecation output continues on version 1.3.48: $ cat /etc/*release
Fedora release 40 (Forty)
NAME="Fedora Linux"
VERSION="40 (Workstation Edition)"
ID=fedora
VERSION_ID=40
VERSION_CODENAME=""
PLATFORM_ID="platform:f40"
PRETTY_NAME="Fedora Linux 40 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:40"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f40/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=40
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=40
SUPPORT_END=2025-05-13
VARIANT="Workstation Edition"
VARIANT_ID=workstation
Fedora release 40 (Forty)
Fedora release 40 (Forty)
$ which terraform-compliance
~/.local/bin/terraform-compliance
$ terraform-compliance --version
terraform-compliance v1.3.48 initiated
1.3.48 |
Description
When running terraform_compliance 1.3.48 with python 3.12 I'm getting multiple DeprecationWarnings on the usage of datetime.datetime.utcnow().
Although terraform_compliance still works, this makes it difficult to read the output.
To Reproduce
Just run terraform_compliance with any feature file on python 3.12
Feature File:
Plan File:
Sample Terraform Code:
Used
terraform-compliance
Parameters:Running via Docker:
YesError Output:
Expected Behavior:
Clean output without deprecation warnings.
Tested Versions:
1.3.48
1.9.1
3.12.4
Additional Context:
The text was updated successfully, but these errors were encountered: