as /.singularity.d/env/90-environment.sh contains the environment variables
Apptainer> cat /.singularity.d/env/90-environment.sh
#!/bin/sh
# Copyright (c) Contributors to the Apptainer project, established as
# Apptainer a Series of LF Projects LLC.
# For website terms of use, trademark policy, privacy policy and other
# project policies see https://lfprojects.org/policies
# Copyright (c) 2018-2021, Sylabs Inc. All rights reserved.
# This software is licensed under a 3-clause BSD license. Please consult
# https://github.com/apptainer/apptainer/blob/main/LICENSE.md regarding your
# rights to use or distribute this software.
# Custom environment shell code should follow
export YEAR.MONTH=2024.05
export TAG=7470
export VERSION=${YEAR.MONTH}.${TAG}.0
# Set the R environment variables if needed
export R_LIBS_USER=/usr/local/lib/R/site-library
How to produce the warining
This is likely to be a case due to following being under
%environment
and not and%arguments
as
/.singularity.d/env/90-environment.sh
contains the environment variables