File: fetchPath.sh

package info (click to toggle)
nix 2.8.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,304 kB
  • sloc: cpp: 62,562; sh: 7,853; yacc: 680; perl: 606; xml: 410; lex: 314; makefile: 73; ansic: 57; sql: 49; python: 22; exp: 3; ruby: 1
file content (6 lines) | stat: -rw-r--r-- 321 bytes parent folder | download
1
2
3
4
5
6
source common.sh

touch $TEST_ROOT/foo -t 202211111111
# We only check whether 2022-11-1* **:**:** is the last modified date since
# `lastModified` is transformed into UTC in `builtins.fetchTarball`.
[[ "$(nix eval --impure --raw --expr "(builtins.fetchTree \"path://$TEST_ROOT/foo\").lastModifiedDate")" =~ 2022111.* ]]