-
Notifications
You must be signed in to change notification settings - Fork 12
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
bug(file): fix for #95 #96
Conversation
@dzmitry-lahoda thank you for the fix. Looks like old file versions created before Regarding the nix flake, I understand you use it to have preinstalled python toolset, however it is not something we want to maintain, and it is not compatible with the rest of this provider, e.g. Please also add an appropriate entry to the Best regards, |
these files are not old 100%. i just created file version resource two days ago with whatever provider version published in registry at that time. all was created 2 days ago. i did not imported anything. resource creation fails with error. https://github.com/n1xyz/n1.nix/blob/dz/1/infra/base/.terraform.lock.hcl |
Ok, as I see, according to the B2 API docs these fields are optional, so having them optional here make perfect sense. Thanks |
@@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |||
* Fixed `allowed_operations` stability issue | |||
* Use macos-14 for ARM as macos-13-large is Intel | |||
* Clarified the purpose of the `endpoint`/`B2_ENDPOINT` configuration value | |||
* Marked md5 and sha1 hashes as optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put it under Unreleased
and not 0.9.0
:
## [Unreleased]
### Fixed
* Marked md5 and sha1 hashes as optional
I have looked more deeply into this problem, and unfortunately:
Ad. 1. Ad. 2.
It means, with Optional, terraforms allows setting resource "b2_bucket_file_version" "test" {
bucket_id = b2_bucket.test.id
file_name = "file.txt"
source = "file.txt"
content_type = "octet/stream"
content_md5 = "test"
} Without that, it throws I was able to solve the problem differently. I will create a new PR. BR/ Maciej Lech |
Also, it looks like for the large files, sha1 is set to "none" string and md5 is None and excluded from the SDK response. |
A new PR #97 |
No description provided.