Fixed normalising requirements file path in dependencies section#2861
Merged
andrewnester merged 4 commits intomainfrom May 13, 2025
Merged
Fixed normalising requirements file path in dependencies section#2861andrewnester merged 4 commits intomainfrom
andrewnester merged 4 commits intomainfrom
Conversation
denik
approved these changes
May 13, 2025
|
|
||
| func normalizePath(path string, location dyn.Location, bundleRootPath string) (string, error) { | ||
| // Handle requirements file paths with -r flag | ||
| reqPath, ok := strings.CutPrefix(path, "-r ") |
Contributor
There was a problem hiding this comment.
should we also TrimSpace in case there multiple spaces?
Contributor
Author
There was a problem hiding this comment.
Good point, fixed + added test
Collaborator
There was a problem hiding this comment.
What about --requirement
deco-sdk-tagging bot
added a commit
that referenced
this pull request
May 14, 2025
## Release v0.252.0 ### Dependency updates * Upgraded Go SDK to 0.69.0 ([#2867](#2867)) * Upgraded to TF provider 1.79.0 ([#2869](#2869)) ### Bundles * Remove unused fields from resources.models schema: creation\_timestamp, last\_updated\_timestamp, latest\_versions and user\_id. Using them now raises a warning ([#2828](#2828)). * Preserve folder structure for app source code in bundle generate ([#2848](#2848)) * Fix normalising requirements file path in dependencies section ([#2861](#2861)) * Fix default-python template not to add environments when serverless=yes and include\_python=no ([#2866](#2866)) * Fix handling of Unicode characters in Python support ([#2873](#2873)) * Add support for secret scopes in DABs ([#2744](#2744)) * Make `artifacts.*.type` optional in bundle JSON schema ([#2881](#2881)) * Fix support for `spot_bid_max_price` field in Python support ([#2883](#2883))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Fixed normalising requirements file path in dependencies section
Fixes #2849
Why
Previously we incorrectly normalised requirements file passed not treating
-rprefix in such paths.Instead we should normalise the path after
-rand then prefix it with-ragain/Tests
Added acceptance test