-
Notifications
You must be signed in to change notification settings - Fork 824
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
fix: detect changes in dockerfile #6495
fix: detect changes in dockerfile #6495
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6495 +/- ##
==========================================
- Coverage 56.52% 55.97% -0.56%
==========================================
Files 430 433 +3
Lines 21150 21406 +256
Branches 4242 4294 +52
==========================================
+ Hits 11955 11981 +26
- Misses 8382 8612 +230
Partials 813 813
Continue to review full report at Codecov.
|
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.
aside from the nits lgtm
@@ -61,7 +61,7 @@ function moveBackendResourcesToCurrentCloudBackend(resources: $TSObject[]) { | |||
// in the case that the resource is being deleted, the sourceDir won't exist | |||
if (fs.pathExistsSync(sourceDir)) { | |||
fs.copySync(sourceDir, targetDir); | |||
if (resource?.service === ServiceName.LambdaFunction) { | |||
if (resource.service === ServiceName.LambdaFunction) { |
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.
is there a reason for removing the optional chain?
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.
Adding this back, that was unintentional
function getHashForResourceDir(dirPath) { | ||
const options = { | ||
// This functions is also on resource-status, might need to be exported from somewhere else | ||
function getHashForResourceDir(dirPath, files?: string[]) { |
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.
nit: can we change this so both call the same function?
compare hashes of dockerfile when checking resource status fix aws-amplify#6359
921871a
to
1d547df
Compare
This pull request introduces 1 alert when merging 1d547df into dc1ebcd - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 5ffe22b into 3b64844 - view on LGTM.com new alerts:
|
This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Issue #, if available:
#6359
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.