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

Allow remote seed packets #3

Open
5 of 8 tasks
jkomoros opened this issue Jun 17, 2023 · 0 comments
Open
5 of 8 tasks

Allow remote seed packets #3

jkomoros opened this issue Jun 17, 2023 · 0 comments

Comments

@jkomoros
Copy link
Owner

jkomoros commented Jun 17, 2023

  • Allow seeds to reference seeds in other packets based on relative location (normalize nested references on packet planting based on the packet location)
  • Allow https absolute paths and fetching
  • Document regex types with describe
  • Seed should immediately return Plant() which has a value() that you await. This will be the way to expose intermediate results of sub-seeds.
  • Actually support mocked garden.fetchRemoteSeedPacket and test
  • A way to fetch all sub-seed referenced locations up front and validate the references before starting a compuation (check for loops in graphs)
  • Add a test for loading a seed in another packet that was already loaded, and then also one that must be loaded due to that reference
  • Use new URL() with a file://localhost/foo file for relative
jkomoros added a commit that referenced this issue Jun 18, 2023
jkomoros added a commit that referenced this issue Jun 18, 2023
jkomoros added a commit that referenced this issue Jun 18, 2023
jkomoros added a commit that referenced this issue Jun 18, 2023
jkomoros added a commit that referenced this issue Jun 18, 2023
jkomoros added a commit that referenced this issue Jun 21, 2023
jkomoros added a commit that referenced this issue Jun 21, 2023
jkomoros added a commit that referenced this issue Jun 21, 2023
jkomoros added a commit that referenced this issue Jun 21, 2023
(This was already true in the last few commits but typechecking didn't detect it because they're both
strings).

Part of #3.
jkomoros added a commit that referenced this issue Jun 24, 2023
…ere the reference is explicitly set to

'.'.

Part of #3.
jkomoros added a commit that referenced this issue Jun 24, 2023
…seedReferenceID, etc.

These descriptions shou up in the messages in schema validation.

Part of #3.
jkomoros added a commit that referenced this issue Jun 24, 2023
jkomoros added a commit that referenced this issue Jun 24, 2023
jkomoros added a commit that referenced this issue Jun 24, 2023
jkomoros added a commit that referenced this issue Jun 24, 2023
…object.

Munging things into strings was very error prone and hard to verify things parsed right. This makes it way,
way easier for users to detect errors earlier.

Part of #3.
jkomoros added a commit that referenced this issue Jun 24, 2023
jkomoros added a commit that referenced this issue Jun 24, 2023
…es it needs.

This cleans up needing to change a billion call sites in every growFoo every time we want a sub-seed to get
more information.

Part of #3.
jkomoros added a commit that referenced this issue Jun 24, 2023
jkomoros added a commit that referenced this issue Jun 24, 2023
jkomoros added a commit that referenced this issue Jun 24, 2023
This is because soon we'll fetch a seed packet if a seed that requires it is loaded.

Part of #3.
jkomoros added a commit that referenced this issue Jun 24, 2023
jkomoros added a commit that referenced this issue Jun 24, 2023
Fetching requires a 'fs' import, which we don't want to do in a browser context.

So it will have to be injected in.

Part of #3.
jkomoros added a commit that referenced this issue Jun 24, 2023
jkomoros added a commit that referenced this issue Jun 24, 2023
jkomoros added a commit that referenced this issue Jun 24, 2023
jkomoros added a commit that referenced this issue Jun 24, 2023
…s called for a location not yet loaded,

it tries to fetch the seed packet first.

Part of #3.
jkomoros added a commit that referenced this issue Jun 24, 2023
Since now SeedReferences are objects and not strings, there's no need to have a different name.

Part of #3.
jkomoros added a commit that referenced this issue Jun 24, 2023
…ileLocation and makeAbsolute to work

with https:// .

Part of #3.
jkomoros added a commit that referenced this issue Jun 24, 2023
…etchSeedPacket choose between them.

fetchRemoteSeedPacket is currently a stub.

Part of #3.
jkomoros added a commit that referenced this issue Jun 24, 2023
Part of #3.
jkomoros added a commit that referenced this issue Jun 24, 2023
jkomoros added a commit that referenced this issue Jun 24, 2023
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

No branches or pull requests

1 participant