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

Support SNAPSHOTs and fix dependency cache #1853

Merged
merged 1 commit into from
Jul 12, 2023
Merged

Support SNAPSHOTs and fix dependency cache #1853

merged 1 commit into from
Jul 12, 2023

Conversation

mtdowling
Copy link
Member

Issue #, if available: #1850

Description of changes:
We will no longer fail when a SNAPSHOT dependency is used. In order to make sure that SNAPSHOTs are periodically re-resolved, a TTL of 1 day was added to the cache file so that the cache is invalidated every 24 hours. The cache can be manually invalidated using smithy clean.

When implementing a TTL, I noticed that caching wasn't actually working and was always invalidated. That's fixed now by using the correct timestamp comparisons, and several new test cases were added.

Closes #1850

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mtdowling mtdowling requested a review from a team as a code owner July 12, 2023 19:04
Copy link
Contributor

@kubukoz kubukoz left a comment

Choose a reason for hiding this comment

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

This is great, thank you so much!

We will no longer fail when a SNAPSHOT dependency is used. In order
to make sure that SNAPSHOTs are periodically re-resolved, a TTL of
1 day was added to the cache file so that the cache is invalidated
every 24 hours. The cache can be manually invalidated using
`smithy clean`.

When implementing a TTL, I noticed that caching wasn't actually
working and was always invalidated. That's fixed now by using the
correct timestamp comparisons, and several new test cases were added.

Closes #1850
@mtdowling mtdowling merged commit afca4d5 into main Jul 12, 2023
11 checks passed
@mtdowling mtdowling deleted the allow-snapshots branch September 11, 2023 18:21
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.

Snapshot dependencies
3 participants