Skip to content

Commit

Permalink
update from oil 0.17 to 0.18
Browse files Browse the repository at this point in the history
Fairly clean. osh2oil rename and a patch break.
  • Loading branch information
abathur committed Feb 28, 2024
1 parent c9b9c08 commit 25ece54
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
13 changes: 8 additions & 5 deletions nixpkgs/oildev.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ rec {
src = fetchFromGitHub {
owner = "oilshell";
repo = "oil";
# rev == present HEAD of release/0.17.0
rev = "df59768253d98bb8551e1a25caaa2c39326c0e31";
# rev == present HEAD of release/0.18.0
rev = "bd7ba38a2c04459cf21352b4ba60da3c334c40b1";
hash = "sha256-TODO-via-fixup";

/*
Expand Down Expand Up @@ -94,7 +94,8 @@ rec {
"${patchSrc}/0009-avoid_nix_arch64_darwin_toolchain_bug.patch"
"${patchSrc}/0010-disable-line-input.patch"
"${patchSrc}/0011-disable-fanos.patch"
"${patchSrc}/0012-disable-doc-cmark.patch"
# "${patchSrc}/0012-disable-doc-cmark.patch"
# DOING: this patch needs to get fixed, but for now I'm just adding a sub
"${patchSrc}/0013-fix-pyverify.patch"
];

Expand All @@ -120,7 +121,9 @@ rec {
# work around hard parse failure documented in oilshell/oil#1468
substituteInPlace osh/cmd_parse.py --replace 'elif self.c_id == Id.Op_LParen' 'elif False'
# disable fragile libc tests
substituteInPlace build/py.sh --replace "py-ext-test pyext/libc_test.py" "#py-ext-test pyext/libc_test.py"
substituteInPlace build/py.sh \
--replace "py-ext-test pyext/libc_test.py" "#py-ext-test pyext/libc_test.py" \
--replace "build/doc.sh all-help" "#build/doc.sh all-help"
'';

# See earlier note on glibcLocales TODO: verify needed?
Expand All @@ -135,7 +138,7 @@ rec {
"oil._devbuild"
"oil._devbuild.gen.id_kind_asdl"
"oil._devbuild.gen.syntax_asdl"
"oil.tools.osh2oil"
"oil.tools.ysh_ify"
];

meta = {
Expand Down
4 changes: 2 additions & 2 deletions resholve
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ from oil._devbuild.gen.syntax_asdl import (
loc,
)

from oil.tools import osh2oil # Cursor
from oil.tools import ysh_ify # Cursor


def jeepers_peepers(self, *args, **kwargs):
Expand Down Expand Up @@ -4557,7 +4557,7 @@ class ResolvedScript(RecordCommandlike):
# look for an excuse to refactor render/write responsibilities.
# Probably a 2022 thing.
def render(self, to=sys.stdout, full=True):
cursor = osh2oil.Cursor(self.arena, to)
cursor = ysh_ify.Cursor(self.arena, to)

replacements = sorted(self.solutions.keys())
if len(replacements):
Expand Down

0 comments on commit 25ece54

Please sign in to comment.