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

Flake support/frontend #324

Merged
merged 149 commits into from
Aug 25, 2021
Merged

Flake support/frontend #324

merged 149 commits into from
Aug 25, 2021

Conversation

ysndr
Copy link
Member

@ysndr ysndr commented Jun 25, 2021

This PR exposes flake support to the search.nixos.org frontend.

closes #334
closes #335
closes #336
closes #339

@github-actions
Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request June 25, 2021 13:32 Inactive
@github-actions
Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request June 28, 2021 10:14 Inactive
src/Search.elm Outdated Show resolved Hide resolved
@github-actions
Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request June 29, 2021 12:41 Inactive
@github-actions
Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request June 29, 2021 13:15 Inactive
@github-actions
Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request June 30, 2021 09:54 Inactive
Base automatically changed from flake-support/cron-jobs to flake-support/tracking July 1, 2021 10:48
@tomberek
Copy link
Contributor

tomberek commented Aug 4, 2021

Blocked by: #320 ?

@github-actions
Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request August 11, 2021 16:04 Inactive
@github-actions
Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request August 11, 2021 16:18 Inactive
@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request August 11, 2021 16:27 Inactive
Base automatically changed from flake-support/tracking to main August 17, 2021 08:55
Prepare data model fro derivations (#1)

Add flake info data (#1)

Implement fetching general flake info (#1)

Expose CLI (#1)

Keep cargo happy

Add some doc comments

Pin to local nixpkgs to excessive downloads

Extend visibility of some data objects

Add command to extract infomation about defivations (#1)

Add call new feature in main (#1)

Include more information in derivation (#1)

Add log access

Always debug log stderr from nix

Format nix script

Collect systems per package

Remove unnecessary imports

Create flake

Remove top level version field

Represent collected systems/version pairs in rust

Fix quotation marks in tests

Add correct cargo hash

Add iconv dependency

Return a list from nix script

Export as json

Undo version by platform distinction

Remove nixpkgs override

Apply cargo fmt

Flatten export structure

Allow for complex licenses

Prepare using a central nix file

Implement nix part o accessing apps

Include the correct filename

Add accessor for `all` key

Access all available information by default

Track more information about Apps

Run cargo fmt

Fix: allow local builds

Prepare next version of the flake info tool

Include examples and pull script

Expose flake info as library

Include thiserror for custom errors

Define a source data type

Collects source types and their metadata, collected in a json file

Add command line argument for input files

Mutually exclusive with --flake

Refactor functions to extract information given a flake identifier

Add kind specifier as CLI argument

Amend Argument parsing to require eiteher flake or targets to be defined

Run extraction for specified flake or list of flakes as specified in a json file

Resolves #5
References #7

Use internal tag to distnguich target types

Include target falg usage in examples

Set include provided source if available (resolves #9)

Resolve flake name

Update examples

Dont include empty license or description

Fix a misfomatting in cargot.toml

Add elastic dependencies

Implement a wrapper around the elasticsearch client

Implements pushing exports (#4)

Temporarily skip serializing an unimplemented field in elastic output

Extract reading source list files from binary

Add lazy_static as dependency

Implement createing and pushing to elastic index

Add elastic options

Provide default name and env falbac for elastic index

Modify app binary and type as optionals

App can be a derivation too

Update examples

Add more elastic commands

Supported:
- ensure
- clear
- push

Rename elastic search config struct

Add elastic push support to binary

Rename flag to enable elastic push

Imporve error messages and format binary source

Fix nix file incorrectly expecting meta fields

Changing flake descriotions to an optional field

deserialize git_ref as hash

Implement temporary stores and gc of these

prevents flakes from accessing store paths

Pass extra arguments to nix

Update cargo hash and skip integration tests

Move flake.nix to root folder and add apps for all components

Fix command invocation that fails test

Update README(s)

Add help for extra arguments

(cherry picked from commit be4bc3dd929178bef66114c2201aaa88e47e9add)
@github-actions
Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request August 20, 2021 09:45 Inactive
@github-actions
Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request August 25, 2021 14:45 Inactive
When trying to first work in this I naive approached it with
`nix-shell`. That of course lead to the fixed output bollocks failing
with a hash mismatch. By making use of the `cargoLock` attribute on
`buildRustPackage` we can tame the FOD-beast and only have to provide
one hash manually for a single package (that we fetch from a GitHub
repository).

This also means that updating dependencies will be simpler as the native
Cargo.lock file can be used.

(cherry picked from commit c3a0e46)
@github-actions
Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request August 25, 2021 14:51 Inactive
@github-actions
Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request August 25, 2021 15:24 Inactive
@github-actions
Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request August 25, 2021 21:46 Inactive
@ncfavier
Copy link
Member

@garbas if you're not planning to merge this in the next few hours, could you please review #342 ?

@github-actions
Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request August 25, 2021 22:34 Inactive
@ysndr ysndr requested a review from ncfavier August 25, 2021 22:36
@ysndr
Copy link
Member Author

ysndr commented Aug 25, 2021

@ncfavier this is ready to merge, I'm only missing an approval on github
@garbas and I have reviewed this PR

Copy link
Member

@ncfavier ncfavier left a comment

Choose a reason for hiding this comment

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

Fantastic!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants