Code Monkey home page Code Monkey logo

nix-source-filtering-demo's Introduction

nix-source-filtering-demo

This repo is for testing source filtering provided by nix-gitignore.

Usage

$ test/run.sh
trace: source.filter /nix/store/7dn4wxhyqmi2j1v442ynj74k3n0gd59v-pvvbjj0hdq70sjh8c7hka4pazgdw0s36-source/.gitignore = true
trace: source.filter /nix/store/7dn4wxhyqmi2j1v442ynj74k3n0gd59v-pvvbjj0hdq70sjh8c7hka4pazgdw0s36-source/main.c = true
trace: source.filter /nix/store/7dn4wxhyqmi2j1v442ynj74k3n0gd59v-pvvbjj0hdq70sjh8c7hka4pazgdw0s36-source/test = true
trace: source.filter /nix/store/7dn4wxhyqmi2j1v442ynj74k3n0gd59v-pvvbjj0hdq70sjh8c7hka4pazgdw0s36-source/test/run.sh = true

total 16
dr-xr-xr-x      5 root  wheel       160 Jan  1  1970 .
drwxrwxr-t  46752 root  nixbld  1496064 Oct 26 21:09 ..
-r--r--r--      1 root  wheel        20 Jan  1  1970 .gitignore
-r--r--r--      1 root  wheel        44 Jan  1  1970 main.c
dr-xr-xr-x      3 root  wheel        96 Jan  1  1970 test

The test will create a secret.env file at runtime. But as you see, that file is not included in $src, which is what we expected.

License

WTFPL

nix-source-filtering-demo's People

Contributors

c4710n avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.