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

feat: package lock and download-on-demand #1802

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

harshdoesdev
Copy link
Contributor

@harshdoesdev harshdoesdev commented Mar 8, 2024

We are implementing package locking in fastn, which will allow us to keep packages in sync when they are deployed to production. Additionally, we are reintroducing download-on-demand to optimize the number of packages and assets that we download. We will perform the download-on-demand only in the dev mode.

Discussion: Package Lock and Download-on-demand

Todos:

  • .packages -> .fastn/package-cache
  • Implement Download-on-demand in --dev mode
  • Generate .fastn/lock.json lockfile
  • Implement two-way merge for packages which usages contents of .fastn/packages and .fastn/package-cache

@harshdoesdev harshdoesdev added the In Progress Development is in progress label Mar 8, 2024
@amitu
Copy link
Contributor

amitu commented Mar 9, 2024

@harshdoesdev rename the folder to .fastn/package-cache. Rationale, what would package-cache store if packages-cache stores multiple packages? Do you call it user table or users table? If users table contain multiple users, then you will say user table contains single user. Or user database, should it be called users database? How about book store? Is book store a place where you JUST SINGLE book and all book stores should be called books stores? How about movie theatre? Should it be movies theatre? Can repair shop, cars repair shop?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In Progress Development is in progress
Development

Successfully merging this pull request may close these issues.

None yet

2 participants