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

pkgs.dockerTools.buildLayeredImage issues #91369

Closed
Hoverbear opened this issue Jun 23, 2020 · 6 comments
Closed

pkgs.dockerTools.buildLayeredImage issues #91369

Hoverbear opened this issue Jun 23, 2020 · 6 comments
Labels
0.kind: bug Something is broken

Comments

@Hoverbear
Copy link
Contributor

I've bumped into an issue with the pkgs.dockerTools.buildLayeredImage!

I was showing this to @grahamc and he suggested I file this as a bug!

I think this is sufficient for a report:

vector on  nix-builds [!] is 📦 v0.10.0 via 🦀 v1.44.0 via ❄️  impure 
❯ nix --version                                                                           
nix (Nix) 2.3.6
vector on  nix-builds [!] is 📦 v0.10.0 via 🦀 v1.44.0 via ❄️  impure took 3s 
❯ make release-x86_64-unknown-linux-gnu VERBOSE=true
nix build --verbose --show-trace --print-build-logs  --argstr buildType debug --file default.nix --out-link target/releases target.releases.x86_64-unknown-linux-gnu.all
trace: x86_64-unknown-linux-gnu
building '/nix/store/0crsn02dy9x5ksc1fwnmqppfaps682j1-vector-0.10.0.drv'...
vector> unpacking sources
vector> unpacking source archive /nix/store/v9ax48acsq83illf4q6p25ypfi6jv10p-source
vector> source root is source
vector> unpacking source archive /nix/store/qv7730298kx4yhyz7cmn4c1sv0y95g56-vector-0.10.0-vendor.tar.gz
vector> patching sources
vector> Validating consistency between /build/source/Cargo.lock and /build/vector-0.10.0-vendor.tar.gz/Cargo.lock
vector> configuring
vector> building
vector> ++ env CC_x86_64-unknown-linux-gnu=/nix/store/v1hcd1cswjgd11gan4czq7hada69iqkq-gcc-wrapper-9.3.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/v1hcd1cswjgd11gan4czq7hada69iqkq-gcc-wrapper-9.3.0/bin/c++ CC_x86_64-unknown-linux-gnu=/nix/store/v1hcd1cswjgd11gan4czq7hada69iqkq-gcc-wrapper-9.3.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/v1hcd1cswjgd11gan4czq7hada69iqkq-gcc-wrapper-9.3.0/bin/c++ cargo build --target x86_64-unknown-linux-gnu --frozen --no-default-features --features sources-docker,sources-file,sources-generator,sources-http,sources-internal_metrics,sources-journald,sources-kafka,sources-logplex,sources-prometheus,sources-socket,sources-splunk_hec,sources-statsd,sources-stdin,sources-syslog,sources-tls,sources-vector,sinks-aws_cloudwatch_logs,sinks-aws_cloudwatch_metrics,sinks-aws_kinesis_firehose,sinks-aws_kinesis_streams,sinks-aws_s3,sinks-blackhole,sinks-clickhouse,sinks-console,sinks-datadog,sinks-elasticsearch,sinks-file,sinks-gcp,sinks-honeycomb,sinks-http,sinks-humio_logs,sinks-influxdb,sinks-kafka,sinks-logdna,sinks-loki,sinks-new_relic_logs,sinks-papertrail,sinks-prometheus,sinks-sematext_logs,sinks-socket,sinks-splunk_hec,sinks-statsd,sinks-vector,sinks-pulsar,transforms-add_fields,transforms-add_tags,transforms-ansi_stripper,transforms-aws_ec2_metadata,transforms-coercer,transforms-concat,transforms-dedupe,transforms-field_filter,transforms-filter,transforms-geoip,transforms-grok_parser,transforms-json_parser,transforms-log_to_metric,transforms-logfmt_parser,transforms-lua,transforms-merge,transforms-regex_parser,transforms-remove_fields,transforms-remove_tags,transforms-rename_fields,transforms-sampler,transforms-split,transforms-swimlanes,transforms-tag_cardinality_limit,transforms-tokenizer,unix,leveldb,rdkafka,rdkafka/dynamic_linking
vector>    Compiling libc v0.2.69
vector>    Compiling proc-macro2 v1.0.8
vector>    Compiling unicode-xid v0.2.0
vector>    Compiling syn v1.0.14
vector>    Compiling serde v1.0.104
vector>    Compiling cfg-if v0.1.10
vector>    Compiling lazy_static v1.4.0
vector>    Compiling byteorder v1.3.2
vector>    Compiling log v0.4.8
vector>    Compiling futures v0.1.29
vector>    Compiling autocfg v1.0.0
vector>    Compiling either v1.5.3
vector>    Compiling slab v0.4.2
vector>    Compiling semver-parser v0.7.0
vector>    Compiling fnv v1.0.6
vector>    Compiling pkg-config v0.3.17
vector>    Compiling autocfg v0.1.7
vector>    Compiling memchr v2.3.0
vector>    Compiling itoa v0.4.5
vector>    Compiling bitflags v1.2.1
vector>    Compiling futures-core v0.3.4
vector>    Compiling version_check v0.9.1
vector>    Compiling proc-macro-nested v0.1.3
vector>    Compiling futures-sink v0.3.4
vector>    Compiling ryu v1.0.2
vector>    Compiling arc-swap v0.4.4
vector>    Compiling futures-io v0.3.4
vector>    Compiling pin-utils v0.1.0-alpha.4
vector>    Compiling futures-task v0.3.4
vector>    Compiling scopeguard v1.0.0
vector>    Compiling pin-project-lite v0.1.4
vector>    Compiling try-lock v0.2.2
vector>    Compiling httparse v1.3.4
vector>    Compiling typenum v1.11.2
vector>    Compiling smallvec v1.2.0
vector>    Compiling foreign-types-shared v0.1.1
vector>    Compiling regex-syntax v0.6.18
vector>    Compiling failure_derive v0.1.6
vector>    Compiling openssl v0.10.27
vector>    Compiling maybe-uninit v2.0.0
vector>    Compiling proc-macro2 v0.4.30
vector>    Compiling unicode-xid v0.1.0
vector>    Compiling percent-encoding v2.1.0
vector>    Compiling matches v0.1.8
vector>    Compiling syn v0.15.44
vector>    Compiling tower-service v0.3.0
vector>    Compiling standback v0.2.8
vector>    Compiling rustc-demangle v0.1.16
vector>    Compiling byte-tools v0.3.1
vector>    Compiling native-tls v0.2.3
vector>    Compiling rand_core v0.4.2
vector>    Compiling openssl-probe v0.1.2
vector>    Compiling opaque-debug v0.2.3
vector>    Compiling base64 v0.12.0
vector>    Compiling fake-simd v0.1.2
vector>    Compiling version_check v0.1.5
vector>    Compiling dtoa v0.4.5
vector>    Compiling linked-hash-map v0.5.2
vector>    Compiling ppv-lite86 v0.2.6
vector>    Compiling unicode-segmentation v1.6.0
vector>    Compiling subtle v1.0.0
vector>    Compiling shlex v0.1.1
vector>    Compiling glob v0.3.0
vector>    Compiling zeroize v1.1.0
vector>    Compiling mime v0.3.16
vector>    Compiling md5 v0.7.0
vector>    Compiling hex v0.4.2
vector>    Compiling rustversion v1.0.2
vector>    Compiling metrics-core v0.5.2
vector>    Compiling remove_dir_all v0.5.2
vector>    Compiling xml-rs v0.8.0
vector>    Compiling fixedbitset v0.1.9
vector>    Compiling siphasher v0.2.3
vector>    Compiling utf8-ranges v1.0.4
vector>    Compiling crc32fast v1.2.0
vector>    Compiling arrayvec v0.4.12
vector>    Compiling multimap v0.4.0
vector>    Compiling percent-encoding v1.0.1
vector>    Compiling build_const v0.2.1
vector>    Compiling adler32 v1.0.4
vector>    Compiling encoding_rs v0.8.22
vector>    Compiling nodrop v0.1.14
vector>    Compiling ansi_term v0.11.0
vector>    Compiling static_assertions v0.3.4
vector>    Compiling string_cache_shared v0.3.0
vector>    Compiling fs_extra v1.1.0
vector>    Compiling metrics v0.12.1
vector>    Compiling unicode-width v0.1.7
vector>    Compiling data-encoding v2.1.2
vector>    Compiling hyper-openssl v0.7.1
vector>    Compiling antidote v1.0.0
vector>    Compiling unicode-xid v0.0.4
vector>    Compiling doc-comment v0.3.1
vector>    Compiling winapi v0.3.8
vector>    Compiling leveldb-sys v2.0.5
vector>    Compiling quick-error v1.2.3
vector>    Compiling lazycell v1.2.1
vector>    Compiling utf8parse v0.1.1
vector>    Compiling quote v0.3.15
vector>    Compiling same-file v1.0.6
vector>    Compiling nix v0.16.1
vector>    Compiling simpl v0.1.0
vector>    Compiling hex v0.3.2
vector>    Compiling vec_map v0.8.1
vector>    Compiling hyper-openssl v0.8.0
vector>    Compiling strsim v0.8.0
vector>    Compiling glob v0.2.11
vector>    Compiling base64 v0.11.0
vector>    Compiling db-key v0.0.5
vector>    Compiling once_cell v1.3.1
vector>    Compiling new_debug_unreachable v1.0.4
vector>    Compiling scoped-tls v1.0.0
vector>    Compiling precomputed-hash v0.1.1
vector>    Compiling arc-swap v0.3.11
vector>    Compiling urlencoding v1.0.0
vector>    Compiling stable_deref_trait v1.1.1
vector>    Compiling bit-vec v0.6.1
vector>    Compiling tower-layer v0.3.0
vector>    Compiling void v1.0.2
vector>    Compiling bit-vec v0.4.4
vector>    Compiling bytesize v1.0.0
vector>    Compiling logfmt v0.0.2
vector>    Compiling exitcode v1.1.2
vector>    Compiling seahash v3.0.7
vector>    Compiling try_from v0.3.2
vector>    Compiling crossbeam-utils v0.6.6
vector>    Compiling tracing-core v0.1.10
vector>    Compiling thread_local v1.0.1
vector>    Compiling sharded-slab v0.0.8
vector>    Compiling semver v0.9.0
vector>    Compiling num-traits v0.2.11
vector>    Compiling indexmap v1.3.1
vector>    Compiling num-integer v0.1.42
vector>    Compiling futures-channel v0.3.4
vector>    Compiling crossbeam-utils v0.7.0
vector>    Compiling crossbeam-epoch v0.8.0
vector>    Compiling rand_pcg v0.1.2
vector>    Compiling rand_chacha v0.1.1
vector>    Compiling rand v0.6.5
vector>    Compiling hashbrown v0.6.3
vector>    Compiling tokio-sync v0.1.7
vector>    Compiling tower-service v0.2.0
vector>    Compiling futures-timer v0.1.1
vector>    Compiling stream-cancel v0.4.4
vector>    Compiling lock_api v0.3.3
vector>    Compiling time v0.2.16
vector>    Compiling unicase v2.6.0
vector>    Compiling proc-macro-error-attr v1.0.2
vector>    Compiling proc-macro-error v1.0.2
vector>    Compiling foreign-types v0.3.2
vector>    Compiling rdkafka-sys v1.3.1
vector>    Compiling unicode-normalization v0.1.12
vector>    Compiling unicode-bidi v0.3.4
vector>    Compiling block-padding v0.1.5
vector>    Compiling rand_core v0.3.1
vector>    Compiling rand_jitter v0.1.4
vector>    Compiling itertools v0.8.2
vector>    Compiling linked_hash_set v0.1.3
vector>    Compiling yaml-rust v0.4.3
vector>    Compiling lru-cache v0.1.2
vector>    Compiling heck v0.3.1
vector>    Compiling error-chain v0.12.1
vector>    Compiling nom v5.1.0
vector>    Compiling c2-chacha v0.2.3
vector>    Compiling petgraph v0.4.13
vector>    Compiling grok v1.0.1
vector>    Compiling phf_shared v0.7.24
vector>    Compiling miniz_oxide v0.3.5
vector>    Compiling crc v1.8.1
vector>    Compiling textwrap v0.11.0
vector>    Compiling synom v0.11.3
vector>    Compiling vte v0.3.3
vector>    Compiling walkdir v2.3.1
vector>    Compiling owning_ref v0.4.0
vector>    Compiling bloom v0.3.2
vector>    Compiling tokio-executor v0.1.9
vector>    Compiling crossbeam-queue v0.1.2
vector>    Compiling rustc_version v0.2.3
vector>    Compiling tower-layer v0.1.0
vector>    Compiling tower-discover v0.1.0
vector>    Compiling rand_isaac v0.1.1
vector>    Compiling rand_xorshift v0.1.1
vector>    Compiling rand_hc v0.1.0
vector>    Compiling idna v0.2.0
vector>    Compiling idna v0.1.5
vector>    Compiling syn v0.11.11
vector>    Compiling strip-ansi-escapes v0.1.0
vector>    Compiling want v0.3.0
vector>    Compiling want v0.2.0
vector>    Compiling tracing-log v0.1.1
vector>    Compiling tokio-timer v0.2.12
vector>    Compiling tokio-current-thread v0.1.6
vector>    Compiling regex-automata v0.1.8
vector>    Compiling base64 v0.10.1
vector>    Compiling quote v1.0.2
vector>    Compiling parking_lot_core v0.6.2
vector>    Compiling memoffset v0.5.3
vector>    Compiling parking_lot v0.9.0
vector>    Compiling rusoto_core v0.44.0
vector>    Compiling hyper v0.12.35
vector>    Compiling lexical-core v0.4.6
vector>    Compiling im v12.3.4
vector>    Compiling tower-load-shed v0.1.0
vector>    Compiling smallvec v0.6.13
vector>    Compiling iovec v0.1.4
vector>    Compiling net2 v0.2.33
vector>    Compiling num_cpus v1.12.0
vector>    Compiling time v0.1.42
vector>    Compiling signal-hook-registry v1.2.0
vector>    Compiling dirs-sys v0.3.4
vector>    Compiling getrandom v0.1.3
vector>    Compiling filetime v0.2.8
vector>    Compiling atty v0.2.14
vector>    Compiling rand_os v0.1.3
vector>    Compiling socket2 v0.3.11
vector>    Compiling hostname v0.1.5
vector>    Compiling inotify-sys v0.1.3
vector>    Compiling xattr v0.2.2
vector>    Compiling quanta v0.3.1
vector>    Compiling rand v0.4.6
vector>    Compiling listenfd v0.3.3
vector>    Compiling rand v0.5.6
vector>    Compiling jobserver v0.1.21
vector>    Compiling quote v0.6.13
vector>    Compiling generic-array v0.12.3
vector>    Compiling sized-chunks v0.1.3
vector>    Compiling flate2 v1.0.13
vector>    Compiling url v2.1.1
vector>    Compiling url v1.7.2
vector>    Compiling tower-retry v0.1.0
vector>    Compiling tower-timeout v0.1.1
vector>    Compiling matchers v0.0.1
vector>    Compiling hdrhistogram v6.3.4
vector>    Compiling derive_is_enum_variant v0.1.1
vector>    Compiling mime_guess v2.0.1
vector>    Compiling aho-corasick v0.7.7
vector>    Compiling futures-cpupool v0.1.8
vector>    Compiling mio v0.6.21
vector>    Compiling signal-hook v0.1.13
vector>    Compiling dirs v2.0.2
vector>    Compiling rand_core v0.5.1
vector>    Compiling clap v2.33.0
vector>    Compiling colored v1.9.2
vector>    Compiling resolv-conf v0.6.2
vector>    Compiling inotify v0.7.0
vector>    Compiling tar v0.4.26
vector>    Compiling cc v1.0.50
vector>    Compiling tokio-retry v0.2.0
vector>    Compiling digest v0.8.1
vector>    Compiling block-buffer v0.7.3
vector>    Compiling crypto-mac v0.7.0
vector>    Compiling syslog v5.0.0
vector>    Compiling cookie v0.12.0
vector>    Compiling mio-uds v0.6.7
vector>    Compiling mio-extras v2.0.6
vector>    Compiling regex v1.3.9
vector>    Compiling rand_chacha v0.2.1
vector>    Compiling sha2 v0.8.1
vector>    Compiling sha-1 v0.8.2
vector>    Compiling hmac v0.7.1
vector>    Compiling synstructure v0.12.3
vector>    Compiling syn-mid v0.5.0
vector>    Compiling phf_generator v0.7.24
vector>    Compiling openssl-sys v0.9.55
vector>    Compiling backtrace-sys v0.1.32
vector>    Compiling libz-sys v1.0.25
vector>    Compiling libgit2-sys v0.9.2
vector>    Compiling zstd-sys v1.4.15+zstd.1.4.4
vector>    Compiling onig_sys v69.1.0
vector>    Compiling jemalloc-sys v0.3.2
vector>    Compiling rlua v0.17.1-alpha.0 (https://github.com/kyren/rlua?rev=25bd7e6bffef9597466a98bfca80a3056c9e6320#25bd7e6b)
vector>    Compiling notify v4.0.15
vector>    Compiling rand v0.7.3
vector>    Compiling publicsuffix v1.5.4
vector>    Compiling scan_fmt v0.2.4
vector>    Compiling string_cache_codegen v0.4.4
vector>    Compiling crossbeam-deque v0.7.2
vector>    Compiling enum-as-inner v0.2.1
vector>    Compiling derivative v1.0.3
vector>    Compiling serde_derive v1.0.104
vector>    Compiling proc-macro-hack v0.5.11
vector>    Compiling tokio-macros v0.2.5
vector>    Compiling pin-project-internal v0.4.8
vector>    Compiling tracing-attributes v0.1.8
vector>    Compiling async-trait v0.1.33
vector>    Compiling inventory-impl v0.1.5
vector>    Compiling ctor v0.1.12
vector>    Compiling ghost v0.1.1
vector>    Compiling snafu-derive v0.6.6
vector>    Compiling typetag-impl v0.1.5
vector>    Compiling tempfile v3.1.0
vector>    Compiling tokio-threadpool v0.1.17
vector>    Compiling string_cache v0.7.5
vector>    Compiling futures-macro v0.3.4
vector>    Compiling time-macros-impl v0.1.1
vector>    Compiling const-random-macro v0.1.8
vector>    Compiling proc-macro-error v0.4.9
vector>    Compiling proc-macro-error-attr v0.4.9
vector>    Compiling pin-project v0.4.8
vector>    Compiling tracing v0.1.15
vector>    Compiling inventory v0.1.5
vector>    Compiling time-macros v0.1.0
vector>    Compiling const-random v0.1.8
vector>    Compiling tower-buffer v0.1.2
vector>    Compiling tower-limit v0.1.3
vector>    Compiling tracing-futures v0.2.0 (https://github.com/tokio-rs/tracing?rev=65547d8809fcc726b8187db85b23c42e32ef5dce#65547d88)
vector>    Compiling ahash v0.2.18
vector>    Compiling structopt-derive v0.4.6
vector>    Compiling snafu v0.6.6
vector>    Compiling leveldb v0.8.5
vector>    Compiling getset v0.1.0
vector>    Compiling lru v0.4.3
vector>    Compiling structopt v0.3.13
vector>    Compiling backtrace v0.3.43
vector>    Compiling failure v0.1.6
vector>    Compiling which v2.0.1
vector>    Compiling prost-derive v0.5.0
vector>    Compiling bytes v0.4.12
vector>    Compiling bytes v0.5.4
vector>    Compiling serde_json v1.0.52
vector>    Compiling chrono v0.4.10
vector>    Compiling serde_urlencoded v0.6.1
vector>    Compiling metrics-util v0.3.1
vector>    Compiling tracing-serde v0.1.1
vector>    Compiling serde_yaml v0.8.11
vector>    Compiling bstr v0.2.10
vector>    Compiling erased-serde v0.3.10
vector>    Compiling serde_urlencoded v0.5.5
vector>    Compiling uuid v0.7.4
vector>    Compiling toml v0.4.10
vector>    Compiling prost-build v0.5.0
vector>    Compiling toml v0.5.6
vector>    Compiling maxminddb v0.14.0
vector>    Compiling tokio-io v0.1.12
vector>    Compiling http v0.1.21
vector>    Compiling tokio-buf v0.1.1
vector>    Compiling string v0.2.1
vector>    Compiling evmap v7.1.3
vector>    Compiling tokio v0.2.13
vector>    Compiling http v0.2.1
vector>    Compiling metrics-observer-prometheus v0.1.3
vector>    Compiling syslog_loose v0.3.0
vector>    Compiling smpl_jwt v0.5.0
vector>    Compiling metrics-observer-json v0.1.1
vector>    Compiling tracing-subscriber v0.2.2
vector>    Compiling metrics-observer-yaml v0.1.1
vector>    Compiling typetag v0.1.5
vector>    Compiling proc-macro-crate v0.1.4
vector>    Compiling futures-util v0.3.4
vector>    Compiling tokio-reactor v0.1.11
vector>    Compiling tokio-codec v0.1.2
vector>    Compiling tokio-fs v0.1.6
vector>    Compiling tower-util v0.1.0
vector>    Compiling tokio-openssl v0.3.0
vector>    Compiling prost v0.5.0
vector>    Compiling http-body v0.1.0
vector>    Compiling h2 v0.1.26
vector>    Compiling headers-core v0.1.1
vector>    Compiling http-body v0.3.1
vector>    Compiling headers-core v0.2.0
vector>    Compiling tracing-limit v0.1.0 (/build/source/lib/tracing-limit)
vector>    Compiling num_enum_derive v0.4.2
vector>    Compiling codec v0.1.0 (/build/source/lib/codec)
vector>    Compiling tokio-tcp v0.1.3
vector>    Compiling tokio-udp v0.1.5
vector>    Compiling tokio-uds v0.2.5
vector>    Compiling tokio-signal v0.2.7
vector>    Compiling tower v0.1.1
vector>    Compiling tracing-tower v0.1.0 (https://github.com/tokio-rs/tracing?rev=65547d8809fcc726b8187db85b23c42e32ef5dce#65547d88)
vector>    Compiling tokio-util v0.3.1
vector>    Compiling tokio-tls v0.3.1
vector>    Compiling tokio-openssl v0.4.0
vector>    Compiling metrics-exporter-log v0.4.0
vector>    Compiling prost-types v0.5.0
vector>    Compiling headers v0.2.3
vector>    Compiling headers v0.3.2
vector>    Compiling futures-executor v0.3.4
vector>    Compiling tower v0.3.1 (https://github.com/tower-rs/tower?rev=c87fdd9c1e4c0728fdaa87d3fafe3e48da9b498a#c87fdd9c)
vector>    Compiling tokio-compat v0.1.5
vector>    Compiling tokio v0.1.22
vector>    Compiling h2 v0.2.4
vector>    Compiling trust-dns-proto v0.8.0
vector>    Compiling cookie_store v0.7.0
vector>    Compiling num_enum v0.4.2
vector>    Compiling futures v0.3.4
vector>    Compiling file-source v0.1.0 (/build/source/lib/file-source)
vector>    Compiling tracing-futures v0.2.1
vector>    Compiling task-compat v0.1.0
vector>    Compiling hyper v0.13.4
vector>    Compiling pulsar v0.3.0
vector>    Compiling trust-dns-resolver v0.12.0
vector>    Compiling hyper-tls v0.3.2
vector>    Compiling hyperlocal v0.6.0
vector>    Compiling reqwest v0.9.24
vector>    Compiling shiplift v0.6.0
vector>    Compiling hyper-tls v0.4.1
vector>    Compiling rusoto_credential v0.44.0
vector>    Compiling metrics-exporter-http v0.3.0
vector>    Compiling warp v0.2.3
vector>    Compiling reqwest v0.10.6
vector>    Compiling rusoto_signature v0.44.0
vector>    Compiling metrics-runtime v0.13.0
vector>    Compiling goauth v0.7.1
vector>    Compiling rusoto_cloudwatch v0.44.0
vector>    Compiling rusoto_s3 v0.44.0
vector>    Compiling rusoto_logs v0.44.0
vector>    Compiling rusoto_firehose v0.44.0
vector>    Compiling rusoto_kinesis v0.44.0
vector>    Compiling rusoto_sts v0.44.0
vector>    Compiling jemallocator v0.3.2
vector>    Compiling onig v4.3.3
vector>    Compiling git2 v0.10.2
vector>    Compiling built v0.3.2
vector>    Compiling vector v0.10.0 (/build/source)
vector>    Compiling rdkafka v0.23.1
vector>     Finished dev [unoptimized + debuginfo] target(s) in 4m 25s
vector> running tests
vector> no Makefile or custom buildPhase, doing nothing
vector> installing
vector> post-installation fixup
vector> shrinking RPATHs of ELF executables and libraries in /nix/store/z0pa4clja8clad6a2irlqz47kb4mr507-vector-0.10.0
vector> shrinking /nix/store/z0pa4clja8clad6a2irlqz47kb4mr507-vector-0.10.0/bin/vector
vector> strip is /nix/store/bh3r88sv8wckwmfyhjxbqmxcha0hrm8h-binutils-2.31.1/bin/strip
vector> stripping (with command strip and flags -S) in /nix/store/z0pa4clja8clad6a2irlqz47kb4mr507-vector-0.10.0/bin
vector> patching script interpreter paths in /nix/store/z0pa4clja8clad6a2irlqz47kb4mr507-vector-0.10.0
vector> checking for references to /build/ in /nix/store/z0pa4clja8clad6a2irlqz47kb4mr507-vector-0.10.0...
building '/nix/store/063287vvjpwlhbag3fhksrkr64nyap77-vector-config.json.drv'...
building '/nix/store/mgc4b33v4bvlha3cki3ci3jlgx83fgmk-closure.drv'...
building '/nix/store/2laicswjrkahhr8dhpj6sq5ff20qr7hf-vector-customisation-layer.drv'...
building '/nix/store/hxja8mlgb8rd9aqzbmkqzpqqkdlag1mw-closure-paths.drv'...
vector-customisation-layer> Packing layer...
building '/nix/store/n1wfwzm33j7rsf9hqgl9a7rf3z6bbv4v-vector-granular-docker-layers.drv'...
vector-granular-docker-layers> Creating layer #1 for /nix/store/y6rz84wgq466ngp9djy0y7pvi5r6aa9g-libunistring-0.9.10
vector-granular-docker-layers> Creating layer #2 for /nix/store/m4b98ivjv2v9sqszqw1phal9a0wr4rk4-libidn2-2.3.0
vector-granular-docker-layers> Creating layer #3 for /nix/store/c2rlh7xa8fcgg7qz8pl76ipvvb172c6k-glibc-2.30
vector-granular-docker-layers> Creating layer #4 for /nix/store/z42y868c19lsxl4pnhdpyyc9s490nys0-gcc-9.3.0-lib
vector-granular-docker-layers> tar: nix: Cannot stat: No such file or directory
vector-granular-docker-layers> tar: nix: Cannot stat: No such file or directory
vector-granular-docker-layers> tar: Exiting with failure status due to previous errors
vector-granular-docker-layers> tar: nix: Cannot stat: No such file or directory
vector-granular-docker-layers> tar: nix: Cannot stat: No such file or directory
vector-granular-docker-layers> Creating layer #6 for /nix/store/byijk75wjm55sjngzl2zls2hgrg49lal-zlib-1.2.11
vector-granular-docker-layers> Creating layer #5 for /nix/store/sam8yfm0pjwwrw4w2iqnq2grfggswn41-openssl-1.1.1g
vector-granular-docker-layers> Creating layer #7 for /nix/store/mhkg88jl22nx1gqpv3j1c6nma2j98hbf-rdkafka-1.4.2
vector-granular-docker-layers> tar: nix: Cannot stat: No such file or directory
vector-granular-docker-layers> tar: Creating layer #8 for /nix/store/z0pa4clja8clad6a2irlqz47kb4mr507-vector-0.10.0
vector-granular-docker-layers> nix: Cannot stat: No such file or directory
vector-granular-docker-layers> tar: Exiting with failure status due to previous errors
vector-granular-docker-layers> tar: Exiting with failure status due to previous errors
vector-granular-docker-layers> tar: nix: Cannot stat: No such file or directory
vector-granular-docker-layers> tar: nix: Cannot stat: No such file or directory
vector-granular-docker-layers> tar: Exiting with failure status due to previous errors
vector-granular-docker-layers> tar: Exiting with failure status due to previous errors
vector-granular-docker-layers> tar: Exiting with failure status due to previous errors
vector-granular-docker-layers> tar: Exiting with failure status due to previous errors
vector-granular-docker-layers> tar: Exiting with failure status due to previous errors
vector-granular-docker-layers> Finished building layer 'vector-granular-docker-layers'
building '/nix/store/3l6rksk2jn3pf292mklc3hvnfaz4gx22-docker-image-vector.tar.gz.drv'...
docker-image-vector.tar.gz> Cooking the image...
docker-image-vector.tar.gz> Finished.
[7 built]
direnv: loading /git/timberio/vector/.envrc                                                                                                                        
direnv: using nix
direnv: export +AR +AR_FOR_TARGET +AS +AS_FOR_TARGET +AWS_ACCESS_KEY_ID +AWS_SECRET_ACCESS_KEY +CARGO_TERM_COLOR +CC +CC_FOR_TARGET +CMAKE_INCLUDE_PATH +CMAKE_LIBRARY_PATH +CMAKE_PREFIX_PATH +CONFIG_SHELL +CPATH +CURL_CA_BUNDLE +CXX +CXX_FOR_TARGET +DETERMINISTIC_BUILD +GEM_PATH +GIT_SSL_CAINFO +HOST_PATH +IN_NIX_SHELL +LC_ALL +LD +LD_FOR_TARGET +LIBCLANG_PATH +NIX_BINTOOLS +NIX_BINTOOLS_FOR_TARGET +NIX_BINTOOLS_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu +NIX_BINTOOLS_WRAPPER_TARGET_TARGET_x86_64_unknown_linux_gnu +NIX_BUILD_CORES +NIX_BUILD_TOP +NIX_CC +NIX_CC_FOR_TARGET +NIX_CC_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu +NIX_CC_WRAPPER_TARGET_TARGET_x86_64_unknown_linux_gnu +NIX_CFLAGS_COMPILE +NIX_CFLAGS_COMPILE_FOR_TARGET +NIX_CXXSTDLIB_COMPILE +NIX_CXXSTDLIB_LINK +NIX_ENFORCE_NO_NATIVE +NIX_HARDENING_ENABLE +NIX_INDENT_MAKE +NIX_LDFLAGS +NIX_LDFLAGS_FOR_TARGET +NIX_PKG_CONFIG_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu +NIX_PKG_CONFIG_WRAPPER_TARGET_TARGET_x86_64_unknown_linux_gnu +NIX_SSL_CERT_FILE +NIX_STORE +NM +NM_FOR_TARGET +NODE_PATH +OBJCOPY +OBJCOPY_FOR_TARGET +OBJDUMP +OBJDUMP_FOR_TARGET +OPENSSL_DIR +OPENSSL_LIB_DIR +PKG_CONFIG +PKG_CONFIG_ALLOW_CROSS +PKG_CONFIG_FOR_TARGET +PKG_CONFIG_PATH +PKG_CONFIG_PATH_FOR_TARGET +PROTOC +PROTOC_INCLUDE +PYTHONHASHSEED +PYTHONNOUSERSITE +PYTHONPATH +RANLIB +RANLIB_FOR_TARGET +READELF +READELF_FOR_TARGET +RUBYLIB +RUST_BACKTRACE +SIZE +SIZE_FOR_TARGET +SOURCE_DATE_EPOCH +SSL_CERT_FILE +STRINGS +STRINGS_FOR_TARGET +STRIP +STRIP_FOR_TARGET +TEMP +TEMPDIR +TMP +TMPDIR +buildInputs +builder +configureFlags +depsBuildBuild +depsBuildBuildPropagated +depsBuildTarget +depsBuildTargetPropagated +depsHostHost +depsHostHostPropagated +depsTargetTarget +depsTargetTargetPropagated +doCheck +doInstallCheck +name +nativeBuildInputs +out +outputs +patches +propagatedBuildInputs +propagatedNativeBuildInputs +shell +stdenv +strictDeps +system ~LOCALE_ARCHIVE ~PATH ~TZDIR

vector on  nix-builds [!] is 📦 v0.10.0 via 🦀 v1.44.0 via ❄️  impure took 4m43s 
❯ 

vector on  nix-builds [!] is 📦 v0.10.0 via 🦀 v1.44.0 via ❄️  impure 
❯ nix-store --query --requisites /nix/store/z0pa4clja8clad6a2irlqz47kb4mr507-vector-0.10.0
/nix/store/y6rz84wgq466ngp9djy0y7pvi5r6aa9g-libunistring-0.9.10
/nix/store/m4b98ivjv2v9sqszqw1phal9a0wr4rk4-libidn2-2.3.0
/nix/store/c2rlh7xa8fcgg7qz8pl76ipvvb172c6k-glibc-2.30
/nix/store/byijk75wjm55sjngzl2zls2hgrg49lal-zlib-1.2.11
/nix/store/sam8yfm0pjwwrw4w2iqnq2grfggswn41-openssl-1.1.1g
/nix/store/z42y868c19lsxl4pnhdpyyc9s490nys0-gcc-9.3.0-lib
/nix/store/mhkg88jl22nx1gqpv3j1c6nma2j98hbf-rdkafka-1.4.2
/nix/store/z0pa4clja8clad6a2irlqz47kb4mr507-vector-0.10.0
@Hoverbear Hoverbear added the 0.kind: bug Something is broken label Jun 23, 2020
@flokli
Copy link
Contributor

flokli commented Jun 24, 2020

cc @utdemir @purcell #91084.

@purcell
Copy link
Member

purcell commented Jun 24, 2020

Can you point us at the default.nix?

@purcell
Copy link
Member

purcell commented Jun 24, 2020

This is likely a regression introduced in 2dd94af (cc @roberth): nix is renamed to __Nix__ but the code still tries to add nix to the tarball.

It would be relatively straightforward to fix this, but we have a parallel PR pending (#91084) which rewrites buildLayeredImage entirely, so I'd suggest a more efficient way forward in terms of testing effort might be to try the rewritten code for your use case, and try to get that merged soon. If you have pointers to the underlying Nix expr, I'd be happy to help confirm that it works with our rewrite.

@roberth
Copy link
Member

roberth commented Jun 24, 2020

Quite likely somewhat of a regression caused by that commit. A commit which is itself a fix for a regression, caused by a fix for another regression (the one where changes elsewhere in /nix/store cause tar to go paranoid and error out).
The logical step forward is to end this inception-style regression layer cake with either #91084 as mentioned by @purcell (thanks!).

An alternative solution to the original problem is to remove the offending check from tar by patching its sources. But that's really only relevant if aforementioned PR has the same problem or doesn't get merged, which I hope is very unlikely.

@arianvp
Copy link
Member

arianvp commented Jun 30, 2020

That PR was merged yesterday. Does this fix OPs issue?

@Hoverbear
Copy link
Contributor Author

Thanks folks. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

5 participants