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

New update mechanism #68

Merged
merged 13 commits into from
Jun 12, 2019
Merged

New update mechanism #68

merged 13 commits into from
Jun 12, 2019

Conversation

nmattia
Copy link
Owner

@nmattia nmattia commented Jun 9, 2019

Fixes #36 .

Got a few things to clean up, but this will greatly facilitate the move to multiple fetchers, and fixes a few bugs.

  • Introduces the Update, which takes care of lazy loading the IO actions (not run if never read or if value will eventually be discarded)
  • Adds a new (unit) test infrastructure
  • Moves from String to Text
  • A bit of renaming

Few things left to iron out:

  • Re-gen the silly svg
  • Check the error handling
  • Remove all occurrences of foo, bar, baz, etc
  • Clarify the separation between the "CLI" spec and the existing spec (i.e. clarify by changing the variable names)
  • Document the hell out of everything

CC @nlewo @michaelpj

@nmattia nmattia requested a review from nlewo June 9, 2019 21:05
@nmattia
Copy link
Owner Author

nmattia commented Jun 9, 2019

Note to self: it'd be better to discarded the null values before serializing

@@ -11,6 +11,6 @@ export NIX_PATH="nixpkgs=./nix"
echo "Building"

# Build and create a root
nix-build --no-link
nix-build --sandbox --no-link --max-jobs 10
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does it work with the default Nix installation (sanboxing is not available)?

Copy link
Owner Author

Choose a reason for hiding this comment

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

What do you mean default Nix installation? On both Linux and macOS sandbox works for me by using the default installer (and nothing more) (albeit with some tweaks on macOS).

We do want to test that everything works with the sandbox; if someone doesn't have support for the sandbox they can simply run nix-build.

What do you think?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I though sandbox was not working by using the default installer. So, if it is working by default, that's fine with me.

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.

Command line attribute rev is ignored
2 participants