Skip to content

Instantly share code, notes, and snippets.

View lukasz-golebiewski's full-sized avatar

Łukasz Gołębiewski lukasz-golebiewski

View GitHub Profile
@lukasz-golebiewski
lukasz-golebiewski / a_help-osx-borked-my-nix.md
Created February 22, 2023 10:04 — forked from meeech/a_help-osx-borked-my-nix.md
Some steps to (hopefully) help you fix your Nix install on OS X after an upgrade.

Apple Borked my Nix!

Ok, so you've had nix (home-manager) working fine. Then Apple tells you it's time to update.

Ok. Reboot. Oops. It has now broken your Nix setup. Here's some stuff to work through. YMMV.

Note: This is what worked for me, who was just using nix + home-manager. The upgrade that I last did that caused all these issues was 12.3.X > 12.4

Useful Links

@lukasz-golebiewski
lukasz-golebiewski / expectedTotalCost = 586
Created August 23, 2019 09:46
Non-deterministic cost accounting test failures of "@0!!(0) | @1!!(1) | for (_ <- @0;_ <- @1) { 0 }"
sbt:rholang> testOnly *CostAccounting*
[info] CostAccountingPropertyTest:
[info] Cost accounting in Reducer
[info] - should have positive cost of substitution (2 seconds, 998 milliseconds)
[info] Charging phlos in Reducer
[info] - should charge the same if the evaluation order is reversed (7 seconds, 70 milliseconds)
[info] - should sequential execution and parallel execution have the same cost (1 second, 398 milliseconds)
[info] - should repeated executions have the same cost (7 seconds, 218 milliseconds)
[info] CostAccountingSpec:
[info] Total cost of evaluation
[warn] Merging 'reference.conf' with strategy 'concat'
[error] 1 error was encountered during merge
[error] java.lang.RuntimeException: deduplicate: different file contents found in the following:
[error] logback.xml
[error] logback.xml
[error] at sbtassembly.Assembly$.applyStrategies(Assembly.scala:141)
[error] at sbtassembly.Assembly$.x$1$lzycompute$1(Assembly.scala:25)
[error] at sbtassembly.Assembly$.x$1$1(Assembly.scala:23)
[error] at sbtassembly.Assembly$.stratMapping$lzycompute$1(Assembly.scala:23)
[error] at sbtassembly.Assembly$.stratMapping$1(Assembly.scala:23)
[info] InMemoryStoreConcurrencyTests:
[info] CORE-589 produce and consume in a multithreaded fashion
[info] - should show high performance *** FAILED ***
[info] java.lang.Exception: java.util.NoSuchElementException: None.get
[info] at coop.rchain.rspace.ConcurrencyTests.$anonfun$$init$$2(ConcurrencyTests.scala:78)
detect_distro()
{
if which lsb_release >/dev/null; then
local R=$(lsb_release -d -s)
echo "Distribution discovered: $R"
if [ -z "${R##Ubuntu 14.*}" ]; then
SYSTEMINITDAEMON=upstart
elif [ -z "${R##Ubuntu 15.04*}" ]; then
SYSTEMINITDAEMON=systemd
fi