-
Notifications
You must be signed in to change notification settings - Fork 20
DocC setup #36
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
DocC setup #36
Conversation
We figured out a slightly better way to deal with the package files -- could you make files for "old swift versions" and just keep one for the new ones as |
|
||
- ``StatsdClient/makeCounter(label:dimensions:)`` | ||
- ``StatsdClient/makeRecorder(label:dimensions:aggregate:)`` | ||
- ``StatsdClient/makeTimer(label:dimensions:)`` |
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.
do we need to adda few more here?
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.
added init
and shutdown
. do you have others in mind?
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.
makeGauge
also?
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.
i don't see makeGauge
?
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.
I guess this API is all coming from swift-metrics, its a protocol implementation
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.
There isn't a makeGauge but Gauge calls into makeRecorder (for better or worse that's how it is)
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.
LGTM looks good to me now!
I think the "trick" with the |
I don't think we're playing a trick here. Concretely, the observed behaviour of SwiftPM around the |
here is the history of going back and forth on this with aws-lambda-runtime: swift-server/swift-aws-lambda-runtime#254 (comment) iirc things worked okay locally and in CI, but broke when consuming the package as a dependency which is why we rolled it back. @fabianfett may recall more details |
The breakage appears to be the result of using symlinks, which we aren't doing elsewhere. |
Concretely, the documentation explains a behaviour, but that behaviour demonstrably diverges from what SwiftPM actually does. Notice that the documentation has both filenames and tools versions. The tools versions appear to bear more of the burden than the filenames. |
Hmmm, I can confirm that the "comment version" takes precedence over what the filename says, I've seen that. I can also confirm having a |
@Lukasa we agree the way this is documented and works is confusing. @abertelrud @neonichu could you chime in here on the original design, and what is the recommended approach? in any case, I think we should wait to hear back from @fabianfett, since he rolled back the "old version files" style from https://github.com/swift-server/swift-aws-lambda-runtime when we added 5.6 support there, and I cannot remember why - only that some scenario was not working for him. |
@yim-lee @ktoso @Lukasa until we hear more back from @fabianfett, let go with the "old files style", i.e make Package.swift required 5.6 and add files for each one of the old version we support. |
No description provided.