Skip to content

Releases: com-lihaoyi/os-lib

0.11.4-M6

05 Feb 15:23
944e33f
Compare
Choose a tag to compare
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
https://github.com/com-lihaoyi/os-lib/pull/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.

0.11.4-M5

31 Jan 22:53
cf2e9a6
Compare
Choose a tag to compare
Revert "Fix empty folder missing problem when zip files. (#330)" (#350)

This reverts commit 90626dfd9f4371c8eb88ff794faefe7a841af90d.
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?

0.11.4-M4

08 Jan 01:45
Compare
Choose a tag to compare
add ignoreErrors to os.remove.all

0.11.4-M3

08 Dec 03:25
90626df
Compare
Choose a tag to compare
Fix empty folder missing problem when zip files. (#330)

Fix: #328

---------

Co-authored-by: Li Haoyi <[email protected]>

0.11.4-M2

23 Nov 02:19
Compare
Choose a tag to compare
0.11.4-M2

0.11.4-M1

27 Oct 06:25
18e1be6
Compare
Choose a tag to compare
Update publish-artifacts.yml

0.11.3

21 Oct 09:01
Compare
Choose a tag to compare

Merged Pull Requests

  • Add flag to register shutdown hooks for os.call and os.spawn APIs, overhaul destroy APIs by @lihaoyi in #324

Full Changelog: 0.11.2...0.11.3

0.11.2

17 Oct 13:46
Compare
Choose a tag to compare

Merged Pull Requests

  • Fixed typo on Readme.adoc by @windymelt in #322
  • Use Files.newOutputStream instead of new java.io.FileOutputStream by @sake92 in #323

New Contributors

Full Changelog: 0.11.1...0.11.2

0.11.1

08 Oct 07:50
Compare
Choose a tag to compare

Merged Pull Requests

  • Propagate content length from filesystem through geny.Writable and os.Source by @lihaoyi in #320

Full Changelog: 0.11.0...0.11.1

0.11.0

07 Oct 18:54
Compare
Choose a tag to compare

Merged Pull Requests

Full Changelog: 0.10.7...0.11.0