Comments (12)
@reflectivecode
Ah, I wasn't aware there hadn't been a release yet.
I've tried locking the archive provider to 1.0.0 using the snippets:
provider "archive" {
version = "<= 1.0"
}
and
provider "archive" {
version = "1.0.0"
}
When pushed to the Lambda, both still create files with names like 'node_modules\library\library.js'. I've also tried on a windows laptop instead of a VM, to no avail.
from terraform-provider-archive.
I second @MrDweebus - I have also tested various releases of archive, but I still see backslashes in the output files.
from terraform-provider-archive.
Even forcing the earliest release of archive doesn't fix it for me. This makes lambda using any non-standard-library functions pretty hard.
provider "archive" {
version = "<= 0.1.0"
}
from terraform-provider-archive.
I started having this problem on provider.archive v1.0.1. Going back to v1.0.0 fixed it for me.
from terraform-provider-archive.
Thanks for reporting that detail, @reflectivecode!
I'm not sure yet why behavior would be different in v1.0.0 since it appears that it's always been required for us to pass forward-slashed paths in here (per golang/go#5307) and we weren't doing it in 1.0.0 either 😖 .
Possibly this can be fixed just by passing the final path through filepath.ToSlash
, but I've not been able to verify that due to my attention being currently focused elsewhere. We'd be happy to review a pull request if you or someone else has the time and motivation to implement it, or else we'll take a look more closely at this when we're able.
from terraform-provider-archive.
Any idea if this issue comes from a recent change or when it was introduced? We have been trying to determine when or what might have triggered it, because everyone on my team didn't notice the issue until a week or so ago. Could have sworn things were fine for months prior to then. Cannot seem to figure out what might have changed. I've rolled back 3 or 4 versions trying to find that working scenario again. Any thoughts?
from terraform-provider-archive.
from terraform-provider-archive.
Same for me.
Like @reflectivecode mentioned this worked for me also until the PR gets mereged.
provider "archive" {
version = "<= 1.0"
}
from terraform-provider-archive.
Closing as it appears #19 was closed in favour of #25 (merged) so this should be fixed now.
from terraform-provider-archive.
I'm still having an issue with this when using an archive_file to zip up code for an AWS Lambda. I've tried using both v1.0.3 and v1.0.0 of the archive provider to no avail.
Is anyone else still experiencing this? Would it have anything to do with the fact that I'm running the Terraform on a Windows VM?
from terraform-provider-archive.
The fix for this problem is not in v1.0.3. We have to wait for a new release first.
Edit:
v1.0.0 does work for me on Linux and Windows (AWS VM). Did you try specifying the version exactly?
provider "archive" {
version = "= 1.0.0"
}
from terraform-provider-archive.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
from terraform-provider-archive.
Related Issues (20)
- Migrate to terraform-plugin-framework HOT 1
- Run archive_file on each apply HOT 2
- data.archive_file does not support resource tainting HOT 2
- Bump Development/Build Minimum Go Version to 1.17 HOT 2
- Issue archiving base64 encoded content w/ source block HOT 5
- Bump Expected Minimum Go Version to 1.18 HOT 1
- archive_file doesn't re-create the archive upon content change
- Source_dir conflicts with source HOT 1
- Zip file created by terraform archive_file cannot be properly read by python
- Generated archive contents include an extra (empty) file when `output_path` is configured within same directory as `source_dir`. HOT 2
- Migrate acceptance testing to terraform-plugin-testing HOT 1
- Bump Expected Minimum Go Version to 1.19 HOT 1
- GitHub Actions - deprecated warnings found - action required! HOT 2
- archive_file data source gets created during "terraform plan" vs "terraform apply" and also is not deleted during destroy HOT 11
- Error generated during the execution of acceptance test on archive_file resource
- Documentation and changelog require updating HOT 1
- Support Additional Compression Types(Ex: tar.gz format) HOT 4
- Update Go Module to Go 1.20 Minimum HOT 1
- archive_file produces a corrupted zip file HOT 5
- Error generating archive with archive_file when symlink is present and exclude_symlink_directories is set to true HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-archive.