Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: com-lihaoyi/os-lib
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.11.3
Choose a base ref
...
head repository: com-lihaoyi/os-lib
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.11.4
Choose a head ref
  • 17 commits
  • 38 files changed
  • 7 contributors

Commits on Oct 24, 2024

  1. Update .mill-version (#300)

    lihaoyi authored Oct 24, 2024
    Copy the full SHA
    4baa7ed View commit details
  2. Update and rename build.sc to build.mill (#326)

    lihaoyi authored Oct 24, 2024
    Copy the full SHA
    7263129 View commit details

Commits on Oct 27, 2024

  1. Instrumented path based operations using hooks defined in Checker (#…

    …325)
    
    Instrumented path based operations using hooks defined in `Checker`.
    ```scala
    trait Checker {
      def onRead(path: ReadablePath): Unit
      def onWrite(path: Path): Unit
    }
    ```
    
    ### Exceptions
    The following operations were not instrumented:
    - `followLink`, `readLink`
    - `list`, `walk`
    - `exists`, `isLink`, `isFile`, `isDir`
    - read operations for permissions/stats
    - `watch`
    
    ### Future work
    - A more comprehensive design would add hooks for each core operation.
    This would eliminate the special check handling in operations like
    `move` and `symlink`.
    - As such, the methods of `ReadablePath` represent escape hatches. These
    cannot be "plugged" without breaking binary compatibility.
    
    This resolves part 1 of [mill
    #3746](com-lihaoyi/mill#3746).
    ajaychandran authored Oct 27, 2024
    Copy the full SHA
    e8519c0 View commit details
  2. 0.11.4-M1

    lihaoyi committed Oct 27, 2024
    Copy the full SHA
    fa3d627 View commit details
  3. Update publish-artifacts.yml

    lihaoyi authored Oct 27, 2024
    Copy the full SHA
    18e1be6 View commit details

Commits on Nov 11, 2024

  1. Update ZipOpTests.scala

    lihaoyi authored Nov 11, 2024
    Copy the full SHA
    1ddbb25 View commit details

Commits on Nov 12, 2024

  1. Add compile-time validation of literal paths containing ".." (#329)

    Addresses #327 
    
    This PR adds additional validation of literal path segments containing
    `..`.
    
    It throws compiletime error, suggesting canonical form of a path, when
    literal path is not canonical.
    
    Eg. "../foo/../bar"   suggests  "../bar"
    
    "foo/.." suggests removing literal
    
    ---------
    
    Co-authored-by: Li Haoyi <haoyi.sg@gmail.com>
    pawelsadlo and lihaoyi authored Nov 12, 2024
    Copy the full SHA
    8d4bf10 View commit details

Commits on Nov 22, 2024

  1. 0.11.4-M2

    lihaoyi committed Nov 22, 2024
    Copy the full SHA
    a3a901c View commit details

Commits on Dec 8, 2024

  1. Fix empty folder missing problem when zip files. (#330)

    Fix: #328
    
    ---------
    
    Co-authored-by: Li Haoyi <haoyi.sg@gmail.com>
    counter2015 and lihaoyi authored Dec 8, 2024
    Copy the full SHA
    90626df View commit details

Commits on Jan 8, 2025

  1. add ignoreErrors to os.remove.all

    lihaoyi committed Jan 8, 2025
    Copy the full SHA
    a4a46e9 View commit details

Commits on Jan 12, 2025

  1. Update Readme.adoc

    lihaoyi authored Jan 12, 2025
    Copy the full SHA
    7113177 View commit details

Commits on Jan 14, 2025

  1. Update publish-artifacts.yml

    lihaoyi authored Jan 14, 2025
    Copy the full SHA
    2790f99 View commit details

Commits on Jan 15, 2025

  1. Update acyclic to 0.3.16 (#342)

    Pull request: #342
    scala-steward authored Jan 15, 2025
    Copy the full SHA
    ce59250 View commit details

Commits on Jan 31, 2025

  1. Revert "Fix empty folder missing problem when zip files. (#330)" (#350)

    This reverts commit 90626df.
    Fixes #349
    
    I've spent some time trying to do a fix forward but I don't have much
    time on my hand.
    Can we revert this in the meantime and @counter2015 can provide another
    PR for the empty folder issue?
    joan38 authored Jan 31, 2025
    Copy the full SHA
    cf2e9a6 View commit details

Commits on Feb 5, 2025

  1. Add ZipSource.fromSeqPath (#352)

    This enables something like this `os.zip(dest / "docusaurus.zip",
    os.list(wd / "build"))`
    joan38 authored Feb 5, 2025
    Copy the full SHA
    e659bd9 View commit details
  2. Add literal syntax for os.Path, os.SubPath, os.RelPath (#353)

    This PR allows
    
    ```scala
    val p: os.Path = "/hello/world"
    val s: os.SubPath = "hello/world"
    val r: os.RelPath = "../hello/world"
    ```
    
    This only allows string-literals that are valid
    absolute/sub/relative-path respectively; passing in invalid paths (e.g.
    `val p: os.Path = "hello/world"`) or non-literals (e.g. `val str =
    "/hello/world"; val s: os.SubPath = str `) is a compile error
    
    
    This builds upon @pawelsadlo's work in
    #297, mostly using
    `segmentsFromStringLiteralValidation` unchanged with some light pre/post
    processing to trim the leading `/` off of absolute `os.Path`s and check
    for leading `..`s on `os.SubPath`s
    
    I'm going to declare bankruptcy on the Expecty issues, as we cannot
    forever be working around bugs in unrelated libraries. If someone has
    problems and wants to fix expecty, they can do so, and we don't need to
    care. If nobody cares enough to fix expecty, we shouldn't care either.
    lihaoyi authored Feb 5, 2025
    Copy the full SHA
    944e33f View commit details

Commits on Feb 16, 2025

  1. 0.11.4

    lihaoyi committed Feb 16, 2025
    Copy the full SHA
    3aea8be View commit details
Loading