Skip to content
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(build,stapel): hash dest link in file cheksum #6453

Merged
merged 5 commits into from
Dec 3, 2024

Conversation

iapershin
Copy link
Collaborator

No description provided.

}

if fileInfo.Mode()&os.ModeSymlink != 0 {
logboek.Context(ctx).Debug().LogF("Skipping symlink %s\n", path)
Copy link
Member

@alexey-igrychev alexey-igrychev Dec 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add the destination of the link to the checksum (os.Readlink).

@iapershin iapershin changed the title fix(build,stapel): skip symlink hashsum caluclation when importing fix(build,stapel): hash dest link in file cheksum Dec 3, 2024
Signed-off-by: Yaroslav Pershin <62902094+iapershin@users.noreply.github.com>
Signed-off-by: Yaroslav Pershin <62902094+iapershin@users.noreply.github.com>
Signed-off-by: Yaroslav Pershin <62902094+iapershin@users.noreply.github.com>
Signed-off-by: Yaroslav Pershin <62902094+iapershin@users.noreply.github.com>
Signed-off-by: Yaroslav Pershin <62902094+iapershin@users.noreply.github.com>
@alexey-igrychev alexey-igrychev force-pushed the fix/build/fix-checksum-for-symlinks branch from c4c0420 to 6f45c0e Compare December 3, 2024 13:10
@alexey-igrychev alexey-igrychev merged commit 5c10f06 into main Dec 3, 2024
11 checks passed
@alexey-igrychev alexey-igrychev deleted the fix/build/fix-checksum-for-symlinks branch December 3, 2024 13:15
iapershin added a commit that referenced this pull request Dec 5, 2024
…nk (#6453)

Signed-off-by: Yaroslav Pershin <62902094+iapershin@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants