Commit Graph

385 Commits

Author SHA1 Message Date
Hamish Knight
128f5d4bc6 Update regex literal lexing and emission
Update the lexing implementation to defer to the
regex library, which will pass back the pointer
from to resume lexing, and update the emission to
call the new `Regex(_regexString:version:)`
overload, that will accept the regex string with
delimiters.

Because this uses the library's lexing
implementation, the delimiters are now `'/.../'`
and `'|...|'` instead of plain `'...'`.
2021-12-17 18:05:31 +00:00
Richard Wei
300cbaba31 Integrate experimental string processing modules and enable end-to-end regex.
- Checkout apple/swift-experimental-string-processing using a tag.
- Build `_MatchingEngine` as part of libswift (`ExperimentalRegex`) using sources from the package.
- Parse regex literals using the parser from `_MatchingEngine`.
- Build both `_MatchingEngine` and `_StringProcessing` as part of core libs using sources from the package.
- Use `Regex<DynamicCaptures>` as the default regex type until we finalize apple/swift-experimental-string-processing#68.
2021-12-17 10:33:07 +00:00
Mishal Shah
b799e47724 Add support for Swift 5.6 branch 2021-12-07 19:04:23 -08:00
Mishal Shah
5fa7324618 Merge pull request #40381 from apple/tomerd-patch-1
update swift-system to 1.1.1
2021-12-06 09:51:09 -08:00
Richard Wei
5ca95ef291 Revert "[update-checkout] Clone experimental string processing package" 2021-12-02 16:55:48 -08:00
tomer doron
3c7e0bd10f update swift-system to 1.1.1 2021-12-02 14:32:37 -08:00
Richard Wei
81631685c0 Merge pull request #40352 from rxwei/update-checkout-string-processing
[update-checkout] Clone experimental string processing package
2021-12-01 20:40:48 -08:00
Mishal Shah
63230ea842 Merge pull request #40349 from apple/tomerd-patch-1
update swift-system to 1.1.0
2021-12-01 15:49:50 -08:00
Richard Wei
a0825f4fdf [update-checkout] Clone experimental string processing package
Clone apple/swift-experimental-string-processing as part of the checkout. We'll use the main branch for now and will version it as needed.
2021-12-01 00:06:40 -08:00
tomer doron
d433f32926 update swift-system to 1.1.0 2021-11-30 21:15:50 -08:00
Alex Hoppen
02d2978184 [update-checkout] Decode stderr from failed update command
Otherwise, the error message gets printed as a Python binary string, e.g. you see
```
b'error: Your local changes to the following files would be overwritten by checkout:\n\tinclude/swift/IDE/CodeCompletion.h\n\tutils/update_checkout/update_checkout/update_checkout.py\nPlease commit your changes or stash them before you switch branches.\nAborting\n'
```
instead of
```
error: Your local changes to the following files would be overwritten by checkout:
	include/swift/IDE/CodeCompletion.h
	utils/update_checkout/update_checkout/update_checkout.py
Please commit your changes or stash them before you switch branches.
Aborting
```
2021-11-29 12:40:03 +01:00
Gwynne Raskind
27e011498f Turns out, if you actually pass the environment, it doesn't like it because 0 isn't a string! 2021-11-26 12:11:58 -06:00
Mishal Shah
eb77eaa4f2 Merge pull request #40129 from jorng/fix_update_checkout_tests
update_checkout (tests): Use 'main' for test branch
2021-11-12 08:54:19 -08:00
Rob Prentiss
1b344b3271 Update call_quietly to show output on failure
If 'call_quietly' fails, there is no indication as to what the failure
was, except for the exit/status code from the subprocess. This adds a
new exception type that will print out stdout/stderr from the subprocess
2021-11-11 11:46:55 -08:00
Rob Prentiss
7f7758bcaa update_checkout: Use 'main' for test branch
In addition to following current best practices for inclusive terms,
this also fixes an issue that occurs if a user has customized their
local git config to use an alternate default branch name (using
'init.defaultBranch').

If a user has set 'init.defaultBranch' in their git config to anything
other than master, the update_checkout tests fail. By setting the
sybolic-ref for HEAD after initializing the bare repo, the user's
setting will not affect the test.
2021-11-11 11:46:54 -08:00
Rob Prentiss
0f44c0c91d update-checkout: Explicitly use python3
This changes the shebangs for the update_checkout executable files to
specifically call Python 3. The code is already compatible and
functional with python3, so this removes any implied backward
compatibility, and removes any ambiguity based on the user's current
environment, especially since some systems, like macOS, still link
'python' to Python 2.

This also removes the now unnecessary 'from __future__' imports.
2021-11-10 15:29:38 -08:00
Mishal Shah
2ff10a57f4 Update the branch for swift-format to swift-5.5-branch 2021-11-10 09:32:29 -08:00
Jake Petroules
ffbb63c519 Update swift-argument-parser 2021-11-09 13:38:40 -08:00
Franklin Schrans
0a04ccec1b Merge pull request #39723 from d-ronnqvist/add-docc-in-build-script
[BuildScript] Add products for Swift-DocC and Swift-DocC-Render
2021-11-02 09:55:17 +00:00
Mishal Shah
0a7272b466 Add support for new rebranch 2021-10-26 23:08:49 -07:00
Ethan Kusters
6fff54d215 Use swift-docc-render-artifact instead of building swift-docc-render 2021-10-19 17:26:02 -07:00
David Rönnqvist
f662d50684 Add build script products for Swift-DocC and Swift-DocC-Render
(rdar://79703353)
2021-10-13 12:36:28 -07:00
Mishal Shah
6c252d06e4 Clean up update-checkout json file 2021-10-11 10:01:31 -07:00
swift-ci
c51550f30e Merge remote-tracking branch 'origin/main' into rebranch 2021-09-30 15:11:41 -07:00
tomer doron
10c9b67f96 Update update-checkout-config.json 2021-09-29 16:38:29 -07:00
Mishal Shah
9d3b7590ef Update llvm-project branch to stable/20210726 2021-09-27 15:57:14 -07:00
tomer doron
54b015b687 update versions of stdlib libraries
update versions of stdlib libraries

swift-atomics -> 1.0.1
swift-collections -> 1.0.0
swift-numerics -> 1.0.1
swift-system -> 1.0.0
2021-09-13 10:51:41 -07:00
tomer doron
398e5f6c4a update swift-collections to 0.0.5 2021-08-13 21:26:10 -07:00
Mishal Shah
8ced62b2fe Add branch support for release/5.5-08092021 2021-08-09 14:23:19 -07:00
Mishal Shah
85dd0acf7a Add support for swift-installer-scripts in update-checkout 2021-08-04 23:04:56 -07:00
Mishal Shah
165e2001c9 Update the swift-argument-parser tag and sync rebranch scheme with main branch. 2021-08-03 17:06:13 -07:00
Mishal Shah
640e0674cc Update the rebranch scheme to use stable/20210726 llvm-project branch 2021-07-28 09:37:41 -07:00
Mishal Shah
7cb2ad4d03 Remove duplicate aliases in next 2021-07-21 15:33:05 -07:00
Jonas Devlieghere
15efc43518 [update-checkout] Update swift/next to next for llvm-project
https://forums.swift.org/t/simplifying-the-apple-llvm-project-branches/50287/
2021-07-21 13:38:27 -07:00
Saleem Abdulrasool
655a74c6da Merge pull request #38411 from compnerd/tags
update_checkout: add a `--skip-tags` option
2021-07-18 15:41:52 -07:00
Mishal Shah
503ea651ce Update argument parser tag for 5.5 to 0.4.3 2021-07-16 13:33:25 -07:00
Saleem Abdulrasool
f7bddc4557 update_checkout: add a --skip-tags option
When fetching the sources, the tags take a very long time due to the
daily tags.  Add an option to skip fetching tags.
2021-07-15 13:03:49 -07:00
tomer doron
73c61bd071 update swift-collections to 0.0.4 2021-07-08 12:25:26 -07:00
Mishal Shah
c36a98e570 Merge pull request #37431 from apple/tomerd-patch-1
add additional apple packages
2021-06-30 00:06:58 -07:00
tomer doron
73c769e134 Update update-checkout-config.json 2021-06-07 10:07:26 -07:00
tomer doron
de19cf2c67 Update update-checkout-config.json 2021-06-07 09:37:43 -07:00
Mishal Shah
5ded3bc260 Update the swift-syntax branch for release/5.5-05142021 2021-05-28 15:04:21 -07:00
Michael Gottesman
14c06d9d25 [update-checkout] On Linux for main, next, and master-rebranch, bump the cmake to v3.19.6.
This is not touching the minimum yet since we need to do a bit more work over
the next couple of weeks to get the bots ready on macOS for the newer cmake.
Windows bots already support the newer cmake.

https://forums.swift.org/t/bump-cmake-version-to-3-18/45033/10
2021-05-19 17:02:46 -07:00
Mishal Shah
41e3332925 Add support for release/5.5-05142021 branch 2021-05-18 17:39:44 -07:00
tomer doron
60870499c9 Update update-checkout-config.json 2021-05-17 15:59:06 -07:00
tomer doron
10f799b0e0 add additional apple packages
motivation: use additional packages in SwiftPM

changes: add swift-atomics, swift-collections, swift-numerics and swift-system
2021-05-14 14:10:35 -07:00
Mishal Shah
6ea3163971 Add scheme for concurrency-5.5-abi-2 2021-05-12 13:09:02 -07:00
Mishal Shah
ceac50eab1 Revert "Bump swift-argument-parser" 2021-05-11 12:42:45 -07:00
Miguel Perez
eb3ffb5a2e Bump swift-argument-parser 2021-05-10 19:22:59 -04:00
Mishal Shah
8967cf9bff Update the swift-argument-parser for main and next branch to 0.4.3 2021-04-28 09:58:39 -07:00