Exclude parsing of `public` statements in Julia v1.10 CI

nandoconde
Sat, 15 Mar 2025 23:59:16 +0000
Tooling

Hi!

I am in the latest steps of setting up my repo for publishing and I am now setting up CI. My repo has some symbols declared as public for v1.11+ releases, but I want to keep compatibility in LTS (since there is no a priori incompatibility).

I have all my public declarations in a single file (public.jl), and I protect inclusion with what is recommended somewhere in Discourse:

VERSION >= v"1.11" && include("public.jl")

However, in CI, when no coverage is produced for the file, it tries to parse it with JuliaParse, which fails for Julia v1.10.

Is there a way to exclude this file for v1.10, or to avoid the errors in parsing?

9 posts - 5 participants