-
Notifications
You must be signed in to change notification settings - Fork 440
Clean build-script by adding subcommands #458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Yes, that’s pretty much what I was thinking as well. I think the possible subcommands could be
We should be able to get rid of the options I mentioned in the “Similar to ” commands once we move to sub parsers. |
426e824
to
ccfdaaa
Compare
Okay. Should we add them to the |
I just took a look at the actions that are currently supported by
Regarding the common args, I think it makes sense to have two functions that add these common args (one for |
99ccce7
to
794a17d
Compare
@ahoppen I added your suggestions on groups. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I think this looks a lot cleaner than our old build-script and I like the separation of the subcommands in different functions 👍
24bad12
to
b995431
Compare
@ahoppen I have fixed all the comments. I'm not sure it knows about the new sub-commands? |
You would need to update the way that the the |
@swift-ci please test |
@swift-ci please test |
Failed because it didn't recognise This syntax seems a bit strange @ahoppen ? |
@swift-ci please test |
Ah, I remember. This is because |
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor thing: CONTRIBUTING.md
needs to be updated to include the build
subcommand.
Afterwards, let’s 🚢 it
@swift-ci please test |
@ahoppen should swiftlang/swift#59651 also be rebuild? |
Yes. I don’t expect it to find any different issues but it’s better to be safe than sorry. |
No, I mixed up the PRs. I thought this was about making matching Swift files for the Python definitions. No need to re-build swift if you just changed CONTRIBUTING.md |
Based on this comment: #381 (comment)
I tried to come with an example on how it could be structured. A command could look like:
python3 ./build-script.py degyb --degyb-only --verbose
What do you think @ahoppen ?
Then we don't need to pass the
--toolchain
etc if it's not needed